Copy link to clipboard
Copied
Is there a way to clear the cache on new uploads of the same file names?
Right now, it seems I have to upload all new file names in order to see changes .. it's a tedious task..
Thanks ahead,
Line
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks kglad,
I will try that!
Copy link to clipboard
Copied
Hi @kglad I am trying your suggestion and for some reason it's still displaying cached stuff..
My other issue I guess with this is, if anyone visits the page and gets cached one version, it's there ~forever! Is there something I need to add to the .html that says no-cache like a meta tag?
Line
Copy link to clipboard
Copied
there are lots of ways to prevent caching some more reliable than others and depending on whether you want "live" updates/refreshes (eg, like web-based email). the most easy and reliable depend on your server language. eg, here's for an apache server, https://support.tigertech.net/prevent-caching
i generally like more direct control and often use an index.html page that loads the main.html page with a query string appended. here's an example where i use javascript to load the start page:
in index.html:
<script src="js/main.js?v="+1></script> // for deployment i just increment a version number so users can cache
<script src="js/main.js?v="+new Date().getTime()></script> // for testing