3 ms·
Bypass the (proxy) cache: add a query parameter with a random value in it. Forgot, why I needed it but back in the day it was a big deal.
by oaiey 6y ago
Bypass the (proxy) cache: add a query parameter with a random value in it. Forgot, why I needed it but back in the day it was a big deal.
- chii 6y agothe old jquery would automatically add this parameter to your get requests to bust the cache.
- panopticon 6y agoI worked at a few marketing shops a while ago where we would manually increment a cache-busting query parameter any time we changed static assets (e.g., `/css/style.css?v=20100908`). We configured Apache to tell the client to cache these resources for a year, and this was a fairly common way of getting around that. Forgetting to update this ended up be a common source of bugs.