lundi 31 mars 2014

Possible to specify a cache length or a forced refresh for a JavaScript file from the hosting server?


Vote count:

0




We are producing a JavaScript library that will be included by web pages on other domains that we do not have direct control over. Ideally, we'd like that file cached, but also have the ability to tell users' browsers (that have loaded the web page that includes our .js file) to clear its cache and reload that .js file should we need to push a bug fix or similar. If an 'on demand' refresh isn't possible, than we'd like to set an appropriate time to live so that changes are picked up at a reasonably predictable interval. Is this possible?



asked 54 secs ago

Pete

12.2k





Aucun commentaire:

Enregistrer un commentaire