pepyatka / pepyatka-server

Server for Pepyatka
79 stars 27 forks source link

RequireJS and cache #35

Open epicmonkey opened 10 years ago

epicmonkey commented 10 years ago

Right now requirejs (r.js -o build.js) generates two minimized files: main.js and common.js the issue is requirejs (build.js) is not configured in a way to prevent browser cache, so sometimes when we deploy updated scripts, users will still see an old pepyatka.

This article http://stackoverflow.com/questions/8315088/prevent-requirejs-from-caching-required-scripts explains how to update requirejs configuration.

Side notes:

epicmonkey commented 9 years ago

I'm keeping this issue open for the time being, though deployment is already pushes ?v= argument to index.html file.