Post by by mona » Sat Oct 30, 2021 10:15 am

You are browser caching html for 1 week because your default is 1 week and you do not explicitely set html
Try this

Code: Select all

ExpiresActive On
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/pdf "access plus 1 week"
ExpiresByType text/x-javascript "access plus 1 week"
ExpiresByType application/x-shockwave-flash "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 week"
ExpiresDefault "access plus 1 week"

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by kmgodinez » Mon Nov 27, 2023 12:11 pm

Hello Guys,

I'm new here and I have the same OC version and problems above. May I know which version of OpenCart is the most stable at the moment?

Newbie

Posts

Joined
Mon Nov 27, 2023 11:32 am

Post by ADD Creative » Mon Nov 27, 2023 11:06 pm

kmgodinez wrote:
Mon Nov 27, 2023 12:11 pm
Hello Guys,

I'm new here and I have the same OC version and problems above. May I know which version of OpenCart is the most stable at the moment?
Probably 3.0.3.9 with any patches that have been added to https://github.com/opencart/opencart/tree/3.0.x.x.

However, it still doesn't set the cache control headers correctly.
viewtopic.php?f=202&t=206449#p853532

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 8 guests