Welcome To Snipplr
Everyone's Recent Snippets Tagged cache
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Handy little snippet i found in 'jquery enlightenment' for caching certain selected files. Could be useful for larger files later on in a site.
1
1255
posted 14 years ago by 1man
Useful for controllers. Put this in your base class for easy caching on variable (GET, POST) dependent pages
0
690
posted 15 years ago by iloveitaly
Flash has a weird cache mechanism, this makes sure that the browser isn't caching any data.
0
1083
posted 15 years ago by iloveitaly
long htaccess expired header for all files except for server side scripts
2
932
posted 15 years ago by dennyhalim
Code snippet prevents caching of the page by setting http header values and a LAST MODIFIED header to prevent google from caching too long. This should go into the page load event.
1
816
posted 15 years ago by jink
This is sometimes not the best solution to a server caching your css files. But if you want to force a stubborn server to serve the most recent css file to the browser this seems to work. Could slow things down a touch, but for small css files not...
1
940
posted 15 years ago by jadedbat
Use Apache's mod_expires to explicitly set the expiration of a file by it's type. This will enable to browser to cache these static assets and greatly increase performance.
1
1081
posted 16 years ago by cbrant
A great way to improve the performance of your web app, by using a column in the projects table which stores the number of task associated with it, seen in railscast #23
1
761
posted 17 years ago by bordalix