.htaccess - Far future Expires header ignored -
following advice given yahoo / yslow @ http://developer.yahoo.com/performance/rules.html#expires trying set far future expires header images.
in .htacess have:
<filesmatch "\.(jpg|jpeg|png|gif)$"> header unset pragma fileetag none header unset etag header set cache-control "public" header set expires "thu, 15 apr 2014 20:00:00 gmt" header unset last-modified </filesmatch>
using live http headers in firefox can see there no etag , expires date shows 2014. also, looking @ cache can confirm expires date , there no etag or server lastly modified date.
again next info given @ yslow expecting if alter image without altering filename no changes take effect until expires date reached. yslow points out “if utilize far future expires header have alter component's filename whenever component changes”.
however, testing on localhost xampp alter create image still reflected on web page if refresh it.
is local server thing or have misunderstood how intended work?
thanks.
.htaccess xampp cache-control expires-header
No comments:
Post a Comment