Welcome To Snipplr


Everyone's Recent Snippets Tagged cache



Great for just about any kind of key/value in-memory caching... scales up to the limitations of the JVM, so it's about as good as it gets without clustering.
1 296 posted 11 years ago by kubaitis
1 389 posted 11 years ago by iloveitaly
0 309 posted 11 years ago by traeregan
1 246 posted 11 years ago by housecor
2 293 posted 11 years ago by wireplay
0 381 posted 11 years ago by silverius
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 507 posted 11 years ago by 1man
Disable directory indexing, custom error messages, PHP processing in other files, mod_rewrite, file GZIP and cache expiration times.
1 332 posted 12 years ago by LuckyShot
0 249 posted 12 years ago by manatlan
Useful for controllers. Put this in your base class for easy caching on variable (GET, POST) dependent pages
0 279 posted 12 years ago by iloveitaly
Using the kohana framework for XSS protection
0 342 posted 12 years ago by iloveitaly
0 327 posted 12 years ago by deepsoul
Flash has a weird cache mechanism, this makes sure that the browser isn't caching any data.
0 424 posted 12 years ago by iloveitaly
1 347 posted 12 years ago by cshaiku
long htaccess expired header for all files except for server side scripts
2 372 posted 12 years ago by dennyhalim
use this to cache a remote file with xml, json etc
2 413 posted 12 years ago by jimmysessions
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 312 posted 12 years ago by jink
1 348 posted 12 years ago by michaelfox
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 410 posted 12 years ago by jadedbat
3 377 posted 12 years ago by erik
2 322 posted 12 years ago by iTony
1 339 posted 12 years ago by iTony
0 366 posted 13 years ago by moonbather
0 267 posted 13 years ago by LondonWeb
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 491 posted 13 years ago by cbrant