Skip to main content
Line
Inspiring
November 5, 2020
Question

I noticed that when I upload a Canvas, it gets saved to Google Chrome memory and can't see changes.

  • November 5, 2020
  • 2 replies
  • 310 views

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

This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
November 5, 2020

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

 

 

 

 

 

 

 

Line
LineAuthor
Inspiring
November 5, 2020

Thanks kglad, 

 

I will try that!

//Signature// I'm a creator. I love illustration, designing, animating , writing, voice overs, acting, making games .. Woo woo!
Line
LineAuthor
Inspiring
November 5, 2020

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

//Signature// I'm a creator. I love illustration, designing, animating , writing, voice overs, acting, making games .. Woo woo!