http - Why are my files not served from the cache? -
i think configured caching correctly domain still both fiddler , firefox webdeveloper show me images, css , js loaded on every request.
this response header 1 of images:
server nginx/0.8.36 date sat, 30 apr 2011 05:02:58 gmt content-type image/jpeg connction keep-alive last-modified fri, 08 apr 2011 22:11:34 gmt etag "16456ec39f6cb1:0" x-powered-by asp.net microsoftofficewebserver 5.0_pub ms-author-via ms-fp/4.0 content-length 2885 expires tue, 24 apr 2012 05:02:58 gmt cache-control max-age=31104000 x-cache hit accept-ranges bytes
so, have expires header item , cache-control has max-age value (should 1 year). if you're wondering: files served asp.net there cdn in between adding header items.
where mistake???
the request ist "http://images.mydomain.com/filename.jpg". there no unique querystring parameters attached.
try add
cache-control: public, max-age=31104000
you can find more cache-control here.
can find more information here.
Comments
Post a Comment