Browser cache invalidation with Javascript
stockrt/cache_invalidation
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# # Author: Rogério Carvalho Schneider <stockrt@gmail.com> # URL: http://stockrt.github.com # Invalidates browser's cache for a given page based on the last refresh. Usage: - Include in the HEAD of your page and set the TTL <html> <head> <script src="http://your_site/javascripts/querystring.js" type="text/javascript"></script> <script src="http://your_site/javascripts/cache_invalidation.js" type="text/javascript"></script> </head> <body> </body> </html> - And set the TTL you want into the cache_invalidation.js file: // TTL: set your cache threshold here var ttl = 300; // seconds The querystring.js component I got from Adam Vandenberg: http://adamv.com/dev/javascript/querystring See also for a complete explanation on how it works and why: http://stockrt.github.com/p/browser-cache-invalidation-with-javascript-and-querystring
About
Browser cache invalidation with Javascript
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published