14 August 2024
tags:
http
browser
cache
Recently, I wanted to introduce ETag as an identifer if new version of a web service is deployed properly. I could use a custom header, but I thought I would be a good boy and use a standard header.
But of course, in my infinite wisdom, I did not include a cache-control header, and since the resource is fetched with WebWorker
, hard refresh (Shift + F5
) did not work, Disable Cache
in developer tool did not work. What worked was right clicking the specific request in developer panel, and manually click "clear browser cache".
Chromium seems to use (current_time - last_modified) / 10
ref
I will now always add cache-control
header. =/
- Previous: FOSDEM2024 day 2
- Next: WTF `git log --before/--until`