limetech / dynamix

14 stars 5 forks source link

Force browser no-cache when default stylesheets or dynamix.js changes #222

Closed bergware closed 9 years ago

bergware commented 9 years ago

When the 'version' postfix changes, it will force the browser to load a no-cache version of the file.

bergware commented 9 years ago

Interesting twist, let me test that ... it would make it a "dynamic" update!

I have tested the "static" approach on Chrome, Firefox and MSIE (Edge) and these browsers work as expected. Might be good to test it on Safari as well (which I don't have)

bergware commented 9 years ago

Ok, new dynamic approach applied. Works great!

bergware commented 9 years ago

The nested quotes work because it switches between HTML and PHP...

When I started with the banner and images I did something similar and let javascript add a timestamp. It didn't fully function - pictures were not always updated, I can't remember how & why.

Though this may give new insights, but I can live with the current working solution, it isn't too shabby :)