Hi team,
can you please help me in setting a single no-cache header for an single file noImageIcon.jpg so that everytime its being accessed request should go to the webserver to check for file.
currently we have setting like below:-
<LocationMatch /store.*/jawr/jawrTmp/>
CookieTracking off
FileETag None
Header Set Cache-Control "max-age=28800, s-maxage=28800, private"
Header unset Last-Modified
# need to remove these
Header unset Pragma
Header unset Expires
</LocationMatch>
<LocationMatch /store.*/jawr/cssSprites/>
CookieTracking off
FileETag None
Header Set Cache-Control "max-age=28800, s-maxage=28800, private"
Header unset Last-Modified
# need to remove these
Header unset Pragma
Header unset Expires
</LocationMatch>
But noImageIcon.jpg file shouldnt have an cache should appear below
Header set Cache-Control "no-cache, max-age=0, private"
I tried below changes but its not working for all these below 4 methods .
1)
<FilesMatch "^(noImageIcon)\.jpg$">
Header set Cache-Control "no-cache, max-age=0, private"
</FilesMatch>
2)
<FilesMatch "noImageIcon.jpg">
Header set Cache-Control "no-cache, max-age=0, private"
</FilesMatch>
3)
<FilesMatch "^noImageIcon.jpg$">
Header set Cache-Control "no-cache, max-age=0, private"
</FilesMatch>
4)
<Files " noImageIcon.jpg ">
Header set Cache-Control "no-cache, max-age=0, private"
</Files>
Please help me in this regard how to implement a single file no-cache setting header.
Thanks,