Search code examples
.htaccesscache-controlhttp-caching

Cache-Control and Expires doesn't Work


I set up cache-control and expires headers via .htaccess but already it doesn't load from browser cache. When I enter the URI, I am waiting for load from web site.

URI: http://www.btgmaslak.com/static/images/main_container_background_11.jpg


Solution

  • It works for me. The subsequent request is loaded from cache.

    This is what you are sending down in the header:

    Cache-Control: max-age=2592000
    Expires: Tue, 29 Jun 2010 08:50:09 GMT