Post by WKDesigns » Sat May 19, 2018 3:05 am

Hello,
Opencart 3.0.2.0 / Journal Theme

Is there a simple way to force end users browser to update site cache? I had a redirect that sent people to a page but ended up changing it and wondered if I could manually update customers cache to see the new redirect. I delete all files but index.html from System/Storage/Cache but didn't work.

New member

Posts

Joined
Fri Nov 10, 2017 3:09 am

Post by sw!tch » Sat May 19, 2018 3:51 am

As far as I know you can't delete a users browser cache, you can however tell the browser what to cache and for how long.

Research header(); should give you some information.

header("Expires: .....");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

etc.

Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Who is online

Users browsing this forum: flog and 24 guests