Comment on Suggestion to decrease server bandwidth load
straycatstrut@discuss.tchncs.de 4 weeks agoFirefox webdev console request headers (minus my personal cookie), where I’m already on the page and just click the refresh button. No if-modified-since sent to the server to trigger a proper 304 response:
GET /pictrs/image/7285a9e0-5492-4461-8188-6778d7d594c7.jpeg?format=webp HTTP/2 Host: discuss.tchncs.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0 Accept: image/avif,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br, zstd Referer: https://discuss.tchncs.de/ Sec-Fetch-Dest: image Sec-Fetch-Mode: no-cors Sec-Fetch-Site: same-origin Connection: keep-alive DNT: 1 Sec-GPC: 1 Priority: u=5, i TE: trailers
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)