Comment on Suggestion to decrease server bandwidth load
straycatstrut@discuss.tchncs.de 4 weeks ago
Here’s the basic set of response headers showing the server is sending the proper cache-control directives on the image. The problem appears to be on the Firefox side using them properly.
$ curl -I https://discuss.tchncs.de/pictrs/image/7285a9e0-5492-4461-8188-6778d7d594c7.jpeg HTTP/2 200 server: openresty date: Tue, 02 Dec 2025 12:51:29 GMT content-type: image/jpeg access-control-expose-headers: content-type, accept-ranges, transfer-encoding, date, cache-control, last-modified vary: Origin, Access-Control-Request-Method, Access-Control-Request-Headers cache-control: max-age=31536000 last-modified: Mon, 30 Jun 2025 11:02:52 GMT expires: Wed, 02 Dec 2026 12:51:29 GMT cache-control: public access-control-allow-origin: * x-cache-status: HIT
straycatstrut@discuss.tchncs.de 4 weeks ago
Firefox webdev console request headers (minus my personal cookie), where I’m already on the page and just click the refresh button. No
if-modified-sincesent to the server to trigger a proper 304 response:Stefan_S_from_H@discuss.tchncs.de 4 weeks ago
It could be that Firefox doesn’t cache files if the URL has a query parameter.
straycatstrut@discuss.tchncs.de 4 weeks ago
Sadly, no - I run an extension called “Don’t accept webp” causing that, I disabled it as soon as I saw the param to test and there’s no difference with or without the param. (webdev console request headers)