Answer the question
In order to leave comments, you need to log in
How to remove caching in htaccess?
I'm doing load optimization on OpenCart, but according to Google Page Speed, I noticed that there are no changes.
Later I noticed that there is caching in the htaccess file.
Removed the caching code from htaccess, but there are no changes.
Can I somehow disable this caching to do my job and then re-enable it?
Answer the question
In order to leave comments, you need to log in
In .htaccess, comment out lines like this:
ExpiresActive On #cache
flash and images for one week
ExpiresByType image/x-icon "access plus 7 days"
ExpiresByType image/jpeg "access plus 7 days"
ExpiresByType image/png "access plus 7 days "
ExpiresByType image/gif "access plus 7 days"
ExpiresByType application/x-shockwave-flash "access plus 7 days"
#cache css, javascript and text files for one week
ExpiresByType text/css "access plus 7 days"
ExpiresByType text/javascript "access plus 7 days"
ExpiresByType application/javascript "access plus 7 days"
ExpiresByType application/x-javascript "access plus 7 days"
#cache html and htm files for one day
ExpiresByType text/html "access plus 1 day" #cache
xml files for ten minutes
ExpiresByType application/xhtml+xml "access plus 10 minutes"
Caching in htaccess has nothing to do with it. If there is no change, then it is a cache or Opencart or hosting.
In the first case, if Opencart is version 3, clear the main cache of the system - on the main page of the admin panel (Status Panel) - on the right in the upper corner - the six-pointer.
If it doesn't help, or opencart is not version 3, some caching module is probably used.
If it doesn’t help, or the opencart is not version 3, and there is no caching module, then it is probably cached from the hosting side (some have similar additional services) ...
If you don’t find the reason, contact the specialists for money ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question