I despise browser caching. Trying to debug a program but stupid browser and or stupid server is still throwing errors because the js file its using is an old, cached one.
Fuck browser caching
Collapse
X
-
-
can't you just clear your cache or am I missing something?Comment
-
-
Well in that case, you are screwed
Actually, you need to identify what method they use to store you as unique user and then change required part. For example, they could store based on your ip, or your user agent of browser.
Comment
-
do you have access to the server? I would just add a version number to the filename. Hopefully they coded their site so that the filename doesn't have to be changed in every single template
but who the fuck is caching javascript server-side? I struggle to imagine a situation where that would ever make senseComment
-
you're right, if the JS file is behind a load balancer or CDN it might be getting cached server-side (it's not a browser-caching issue, OP)
it's part of why I'm in the habit of bumping the filename every time I update static resources, I just code my sites so there's only one file that references the actual resource URL and every other template includes the "common includes" template or whatever
there's a saying that there's only 2 hard problems in computer science: naming and cache invalidation. I mostly name my variables things like "fuck_you" and "your_mom_is_a_whore" so I'm not particularly opinionated as to the difficulty of naming things but when it comes to cache invalidation god DAMN I run into some tough issuesComment



Comment