PDA

View Full Version : .htaccess no cache - how to??


imnovice
06-23-2007, 03:16 PM
I want to do .htaccess with no cache.

inside .htaccess file:

<Files *>
Header set Cache-Control: "private, pre-check=0, post-check=0, max-age=0"
Header set Expires: 0
Header set Pragma: no-cache
</Files>

I got internal error: a 500 Internal Server Error error.

Help me please . . .

Andan
07-29-2007, 02:01 PM
.htaccess Tips and Tricks (http://www.askapache.com/htaccess/apache-htaccess.html)

Visit the site above. It should contain something for caching and no cache using .htaccess file.


.htaccess no cache may not work, perhaps due to the server not allowing some .htaccess commands as it may pose a security risk.