Page 1 of 1
Caching issue on mobile website.
Posted: Thu Mar 16, 2023 5:18 pm
by Afrofunk
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.
Re: Caching issue on mobile website.
Posted: Thu Mar 16, 2023 5:51 pm
by paulfeakins
Are you using CloudFlare or anything like that?
Re: Caching issue on mobile website.
Posted: Thu Mar 16, 2023 7:27 pm
by Afrofunk
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...
Re: Caching issue on mobile website.
Posted: Thu Mar 16, 2023 8:14 pm
by ADD Creative
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.
Re: Caching issue on mobile website.
Posted: Thu Mar 16, 2023 11:15 pm
by Afrofunk
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?
Re: Caching issue on mobile website.
Posted: Fri Mar 17, 2023 1:20 am
by ADD Creative
"cache-control", "expires", anything that mentions cache, etc in the response headers for a page.
Re: Caching issue on mobile website.
Posted: Fri Mar 17, 2023 5:50 am
by halfhope
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.
Re: Caching issue on mobile website.
Posted: Fri Mar 17, 2023 6:38 pm
by paulfeakins
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.
Re: Caching issue on mobile website.
Posted: Tue Apr 25, 2023 8:27 pm
by SohBH
Do you mean that changes made to product information or static files such as CSS, not being reflected on the mobile browser?
Re: Caching issue on mobile website.
Posted: Wed Jun 07, 2023 7:27 pm
by Afrofunk
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.
Re: Caching issue on mobile website.
Posted: Wed Jun 07, 2023 10:06 pm
by paulfeakins
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.