Question

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.

Was it helpful?

Solution

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

Sorry.. :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top