Earlier quoted context omitted.
OP’s point was that logout should not be implemented with a link/GET but instead with a button/POST for exactly this reason.
A logout action is idempotent, though. You can't get logged out twice. In my opinion, that's the use case for a GET request. I just checked NewRelic, Twilio, Stripe and GitHub. The first 3 logged out with a GET request and GitHub used a POST.
Show HN: Make your site’s pages instant in one minute
281–290 of 361 posts
Re: Show HN: Make your site’s pages instant in one minute
#282Earlier quoted context omitted.
nothing on my network tab in ff 65.0
ditto. It works on Chrome though (sigh)
Re: Show HN: Make your site’s pages instant in one minute
#283Earlier quoted context omitted.
Good point. What would be a good way to avoid prefetch requests in your analytics if you only derive analytics from server access logs?
Most browsers pass a "purpose:prefetch" or similar HTTP header in the prefetch request that you can use to differentiate
Re: Show HN: Make your site’s pages instant in one minute
#284I have just added it to a Shopify store to try it and it does indeed speed things up! However I am a little concerned with adding a script from another website... it requires a lot of trust, doesn'it?
Re: Show HN: Make your site’s pages instant in one minute
#285Many people browse the web from an employer who has rules about what types of pages may be accessed. For example, a person applying for a job with my team may include a link to a web page about their job-related background -- portfolio.html or whatever. HR tells us to be sure we don't follow links to any other page that may be more personal in nature, such as a page that reveals the applicant's marital status (which…
Where do you work that makes tolerating that level of idiotic behavior worth it? It the job super interesting or the pay above market rate? If not, there are much greener pastures my friend.
Companies that treat their employees like morons eventually push out everyone who is not one.
Re: Show HN: Make your site’s pages instant in one minute
#286Earlier quoted context omitted.
If you need people to design their websites around your companies HR metrics collection for them to work, then your HR department's metrics are the problem. The easiest way to improve productivity at your company could be to drastically cut HR funding, maybe HR should collect some metrics on how much time HR spends building datasets that aren't accurate.
I don't think it's a matter of HR necessarily. HR has guidelines because a lot of their job has to do with compliance. Big companies absolutely need large HR departments because a lot more regulations apply.
Re: Show HN: Make your site’s pages instant in one minute
#287https://reactjs.org/ does it pretty well too.
Re: Show HN: Make your site’s pages instant in one minute
#288Earlier quoted context omitted.
We're talking about evidence in a discrimination court case that points to an IP address associated with a company that visited /family.htm around the time someone applied for a job they didn't get. Like, that person went through their blog's access.log when they got home, defeatedly looking up IP addresses, and going "aha, jackpot!"? And everyone in the company hovers links to be sure they don't go to /as-a-black-ma…
Yes, I can't see how anyone could think this is sane in any sense. Brb putting my kids in my GitHub profile picture.
Re: Show HN: Make your site’s pages instant in one minute
#289Earlier quoted context omitted.
OP’s point was that logout should not be implemented with a link/GET but instead with a button/POST for exactly this reason.
A logout action is idempotent, though. You can't get logged out twice. In my opinion, that's the use case for a GET request. I just checked NewRelic, Twilio, Stripe and GitHub. The first 3 logged out with a GET request and GitHub used a POST.
The whole reason this is supposed to be the case is in order to enable such functionality as this instant thing.
Re: Show HN: Make your site’s pages instant in one minute
#290Live demo on my website @ https://sysadmincasts.com/ Temporary added it in-line for testing. I was already in the sub 100ms level but this just puts it over the top! Also updated all admin add/edit/delete/toggle/logout links with "data-no-instant". Pretty easy. Open developer preview and watch the network tab. Pretty neat to watch it prefetch! Thanks for creating this! ps. Working on adding the license comment. I str…