News for hackers. Stuff that matters.
Re:PageAccelerator – A very light solution to load web pages... by deevus on Monday September 12, 2016 @08:10PM (#12484773)
Perhaps I'm understanding this incorrectly, but what happens if you have a destructive link that deletes something?
Re:PageAccelerator – A very light solution to load web pages... by beejamin on Monday September 12, 2016 @08:54PM (#12484936)
The official answer is "Links shouldn't ever create or delete things". Of course, in practice, lots of links do create and delete things, and that this type of preloading would be a really bad idea on those sites.
Re:PageAccelerator – A very light solution to load web pages... by Cthulhu_ on Tuesday September 13, 2016 @03:44AM (#12486273)
Google had an accellerator in their browser toolbar like 10 years ago which prefetched pages like that. It didn't end well with poorly built webapps with 'delete' links.
Re:PageAccelerator – A very light solution to load web pages... by kayamon on Tuesday September 13, 2016 @01:57AM (#12485910)
Search engines have the same problem. The solution is simply to not use HTTP GET for destructive links - use PUT or POST instead.
Re:PageAccelerator – A very light solution to load web pages... by evandrolg on Tuesday September 13, 2016 @08:25AM (#12487482)
Your you do it with POST / PUT ;) If you would like to do it using a link, you simply add data-pageAccelerator="false"
Re:PageAccelerator – A very light solution to load web pages... by dalore on Tuesday September 13, 2016 @06:44AM (#12486881)
You make it a http POST as per the standard.