apache no-cache, expire

Gabi picture Gabi · Jan 1, 2012 · Viewed 9.4k times · Source

I am trying to force no-cache on csv file on my site.
I added those lines to httpd.conf, by the documentation from apache:

ExpiresActive On
ExpiresDefault A0
<FilesMatch "\.(html|csv|htm)$">
ExpiresDefault A0
Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>

But when I am trying to get the page at the first time, i get this on the csv file :

Request Method:GET  
Status Code:200 OK (from cache)  

Do you have any idea what i am doing wrong?!

Thanks!!

Gabi.

Answer

Gabi picture Gabi · Jan 2, 2012

I checked it out and saw I have Django Middleware enabled, thet handled the cache.. I disabled it and now it works..

Sorry.. :)