1: <script type="text/javascript" src="/content/js/global.js?33433651"></script>
piątek, 4 września 2009
Prevent caching javascript or css files
The reason for this post is to make an application prevent user's browser from caching css or js files when you deploy new version of this files.
Here is an oryginal post for this.
The goal is to make css links or javascript links in your application look like this:
Listing 1: Desired css link format.
You just have to create an helper which is going to take your application version number and add it to the parameter of css or js files source.
Number with application version should change everytime you deploy your site.
Subskrybuj:
Komentarze do posta (Atom)
Brak komentarzy:
Prześlij komentarz