How to disable Apache caching in Apache-XAMPP?

I had this strange problem with my XAMPP-Apache. I am making a login system where the form is submitted to the redirect.php page. I updated redirect.php, but still it shows me the same old result. There is not even one line to redirect (call fn header) to another page, but it is redirected to the home page, as it was in the earlier script. I tried to clear my browser’s cache and change the browser for testing, but it didn’t work ... I even tried to restart the server, but no changes. Please help me through ....

+8
php caching apache xampp
source share
3 answers

Have you tried this? Should work both in .htaccess , httpd.conf , and in VirtualHost (usually placed in httpd-vhosts.conf if you included it from your httpd.conf)

 <filesMatch "\.(html|htm|js|css)$"> FileETag None <ifModule mod_headers.c> Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" </ifModule> </filesMatch> 

100% File Caching Prevention

This is similar to how Google ads use the Cache-Control: private, x-gzip-ok = "> header to prevent proxies and clients from caching ads. From http://www.askapache.com/htaccess/using- http-headers-with-htaccess.html

And if necessary, add an extension for the template files that you extract if they use an extension other than .html.

+8
source share

If the request is identical, it is possible that you get a response from the cache.

Solution 1:

You can try to use a unique query each time by adding, for example, a timestamp.

Solution 2 (not every server will accept - it depends on the server settings):

You can set header parameters for your request, for example:

 'If-Modified-Since' = 'Mon, 26 Jul 1997 05:00:00 GMT' 'Cache-Control' = 'no-cache' 'Pragma' = 'no-cache' 

Solution 3:

Play with the server configuration :)

0
source share

comment on this part in httpd.conf:

LoadModule cache_module modules / mod_cache.so

-one
source share

All Articles