This code will fix cache related problems on opencart 3 like empty cart issue, modification refresh issues etc.
- Developer: Aone Quality
- Product Code: cache fix
- Availability: 2-3 Days
Compatibility
3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.1.0.0_b, 3.0.3.0, 3.0.3.1
Just copy & pate below side code in .htaccess
RewriteEngine On
<FilesMatch "\.(html|htm|php)$">
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, 12 Jan 1980 05:00:00 GMT"
</IfModule>
</FilesMatch>