Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Perhaps I'm understanding this incorrectly, but what happens if you have a destructive link that deletes something?


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.


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.


Search engines have the same problem. The solution is simply to not use HTTP GET for destructive links - use PUT or POST instead.


Your you do it with POST / PUT ;) If you would like to do it using a link, you simply add data-pageAccelerator="false"


You make it a http POST as per the standard.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: