News for hackers. Stuff that matters.
Re:Tab Unloading in Firefox 93 by vbezhenar on Tuesday October 05, 2021 @02:55PM (#28763935)
AFAIK whether page will be restored or reloaded depends on its cache headers. I remember breaking back button in one of my projects, because users asked for it, as they expected fresh data for some reason. It was not SPA, just old server rendered website, so I disabled caching via response headers and it worked.
Re:Tab Unloading in Firefox 93 by SilasX on Tuesday October 05, 2021 @04:15PM (#28764994)
Hm I'm going to see if there's a setting to override a site's choice of that header.
Re:Tab Unloading in Firefox 93 by dorgo on Tuesday October 05, 2021 @07:33PM (#28767113)
I found no setting. Im using an addon "ModHeader" to set the response header (for all websites) "Expires" to a date far in the future. It worked in the past, but doesn't work at the moment. Have to debug it.
Re:Tab Unloading in Firefox 93 by SilasX on Wednesday October 06, 2021 @11:47AM (#28774554)
Wouldn't you need to modify Cache-Control?

>>If there is a Cache-Control header with the max-age or s-maxage directive in the response, the Expires header is ignored.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ex...

Edit: Also I'm not sure that is the relevant one? Reddit sets Cache-Control to "private, max-age=3600 [seconds]", but it definitely reloads the content if I back up in less than an hour.