Post by Afrofunk » Thu Mar 16, 2023 5:18 pm

Hoping someone will have an answer to caching of website on a mobile phone.
it takes forever to automatically update any changes that have been done on our website on the mobile. like 24 hours in most cases. Desktop changes are updated instantly. The only way i can see any changes i've done to the site on a phone is by going to my settings on the phone and clearing the cache and thats not ideal for users who regularly visit the site.
Anyone have experience of this or a workaround for this or knowledge why this happens for browsers on phones ? Don't know if this an OC issue? Running Opencart 2.3.0.2, we have Nitropack installed (old version) clears cache and works still on desktop.

New member

Posts

Joined
Fri Nov 02, 2018 7:15 pm

Post by paulfeakins » Thu Mar 16, 2023 5:51 pm

Are you using CloudFlare or anything like that?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Afrofunk » Thu Mar 16, 2023 7:27 pm

paulfeakins wrote:
Thu Mar 16, 2023 5:51 pm
Are you using CloudFlare or anything like that?
No, im thinking if it maybe a server issue and ask our hosting company. im at a loss what could be causing this...

New member

Posts

Joined
Fri Nov 02, 2018 7:15 pm

Post by ADD Creative » Thu Mar 16, 2023 8:14 pm

Use your web browser's developer tool network tab to check the headers you pages are returning. You can even switch it to mobile emulation to see if the headers are any differnt.

www.add-creative.co.uk


Expert Member

Posts

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

Post by Afrofunk » Thu Mar 16, 2023 11:15 pm

ADD Creative wrote:
Thu Mar 16, 2023 8:14 pm
Use your web browser's developer tool network tab to check the headers you pages are returning. You can even switch it to mobile emulation to see if the headers are any differnt.
What am i looking for in the headers?

New member

Posts

Joined
Fri Nov 02, 2018 7:15 pm

Post by ADD Creative » Fri Mar 17, 2023 1:20 am

"cache-control", "expires", anything that mentions cache, etc in the response headers for a page.

www.add-creative.co.uk


Expert Member

Posts

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

Post by halfhope » Fri Mar 17, 2023 5:50 am

Hi!

I also recommend versioning static resources.

Code: Select all

<link rel="stylesheet" type="text/css" href="stylesheet.css?v=1.1002">
After changes, change the versions of styles and scripts so that they are updated for all clients.

My extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by paulfeakins » Fri Mar 17, 2023 6:38 pm

halfhope wrote:
Fri Mar 17, 2023 5:50 am
I also recommend versioning static resources.

Code: Select all

<link rel="stylesheet" type="text/css" href="stylesheet.css?v=1.1002">
Yep this is a good idea.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by SohBH » Tue Apr 25, 2023 8:27 pm

Do you mean that changes made to product information or static files such as CSS, not being reflected on the mobile browser?

Business Web Development | Content Creation | Analytics and Reporting | SEO


User avatar
Active Member
Online

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia

Post by Afrofunk » Wed Jun 07, 2023 7:27 pm

SohBH wrote:
Tue Apr 25, 2023 8:27 pm
Do you mean that changes made to product information or static files such as CSS, not being reflected on the mobile browser?
Yes still have this problem.

New member

Posts

Joined
Fri Nov 02, 2018 7:15 pm

Post by paulfeakins » Wed Jun 07, 2023 10:06 pm

Afrofunk wrote:
Thu Mar 16, 2023 7:27 pm
paulfeakins wrote:
Thu Mar 16, 2023 5:51 pm
Are you using CloudFlare or anything like that?
No, im thinking if it maybe a server issue and ask our hosting company. im at a loss what could be causing this...
It might be a server problem but CloudFlare should reduce the load on the server and speed things up for your customers.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 169 guests