keat Posted August 1, 2017 Share Posted August 1, 2017 I found an issue where my basket fails to update when adding additional items. Removing a few cache lines from .htaccess and the fault seems to go away. ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 day" ExpiresByType image/jpeg "access 1 day" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 day" ExpiresByType application/pdf "access 1 day" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 1 month" </IfModule> ## EXPIRES CACHING ## Any ideas which line would cause this. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 1, 2017 Share Posted August 1, 2017 I'd change; ExpiresByType text/html "access 1 day" to; ExpiresByType text/html "access 0 seconds" Quote Link to comment Share on other sites More sharing options...
keat Posted August 1, 2017 Author Share Posted August 1, 2017 That makes sense, it must have been like this for a while. Strange how no one has mentioned it until today and then I get two phone calls in the space of 20 minutes. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted August 1, 2017 Share Posted August 1, 2017 I agree with @Al Brookbanks and this causes a lot of issues with people blindly following recommendations on certain page speed sites. The other one I would be careful of is the CSS one ! Ian Quote Link to comment Share on other sites More sharing options...
keat Posted August 1, 2017 Author Share Posted August 1, 2017 noted Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 1, 2017 Share Posted August 1, 2017 29 minutes ago, keat said: That makes sense, it must have been like this for a while. Strange how no one has mentioned it until today and then I get two phone calls in the space of 20 minutes. Hosts can make these changes without letting their clients know. The more the browser caches and for longer the less hits on the server. Quote Link to comment Share on other sites More sharing options...
keat Posted August 1, 2017 Author Share Posted August 1, 2017 It was on my own server, so It will have been me who applied it. Looking in my backups, it was apparent going back to at least two weeks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.