Broken frontpage
-
My website works fine and fast with W3, only after a while it breaks my frontpage on mobile (I only see the toggle menu open and the frontpage design broken). If I purge all caches the problem seems to be solved until the next day.
The page I need help with: [log in to see the link]
-
Hello @caersbart
Thank you for reaching out.
I’ve checked your website on both desktop and mobile and I am not seeing the issue.
It would be great if I could see the website once the problem occurs.
I’ve noticed that you are also using varnish cache. Is the Reverse Proxy enabled in Performance>General settings or you are using some other method?
Thanks!Hello @vmarko,
thanks for the fast reply. I’ve purched the caches this morning and then the problem is gone. Probably tomorrow after the renewal the problem will occur again. I will give you notice when the problem is coming up again.
The reverse proxy is enabled (altough I also have the proxy cache plugin witch state: Plugin: W3-total-cache : This type of caching plugin does not work well with server side caching. (Active)) But I guess this is not related to my problem?
Hello @caersbart
Thank you for the information.
Can you please share if you have server-side caching enabled and which plugin you are using for proxy?
Please let me know when the issue occurs again so I can take a look.
Thanks!Hello @vmarko,
As I tought the problem is back after 24h, I didn’t purched the caches so you could see the brake-down (it’s only the frontpage, mobile and desktop).
I use the proxy cache plugin and have Varnish and Redis installed on my server.
When I will purche all my caches the problem will be away for 24h
Hello @caersbart
Thank you for the information.
I’ve checked your website and I can confirm that I am seeing the issue you are referring to.
I’ve inspected the source and as I can see a bunch of 500 failed to load errors that are related to the styling of the website.
I’ve tried bypassing the page cache by adding the random query string to the URL https://www.caersbart.be/?asdf and the website loads fine, so it appears that the page was cached at some point without styling.
And just now I saw that the website loads fine without the query string so may I assume that you purged the cache?
Is it possible just to try purging the cache in the Proxy cache plugin you are using?
Thanks!@vmarko, I’ve got a lot of net::ERR_ABORTED 500 cache errors
I didn’t purched but removed some clutter from the .htaccess and the website seems to be fine again, no idea if that did the trick. I will follow it up.Weird is goes fine and than after 24h the style is broken, only the front page.
I appreciate your help, thanks
Hello @caersbart
Thank you for the information.
Please let me know if the issue continues to persist and if possible, share what you removed from the .htaccessTHanks!
The problem seems to be resolved
I removed this code in the .htaccess in the themes folder.
Don’t now how it got there but I guess it’s harmless to delete it. My site doesn’t brake down any more and the CWV en speed seems oke.# BEGIN Expire headers
ExpiresActive On
# Images
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/png “access plus 1 year”
ExpiresByType image/webp “access plus 1 year”
ExpiresByType image/svg+xml “access plus 1 year”
ExpiresByType image/x-icon “access plus 1 year”# Video
ExpiresByType video/mp4 “access plus 1 year”
ExpiresByType video/mpeg “access plus 1 year”# CSS, JavaScript
ExpiresByType text/css “access plus 1 month”
ExpiresByType text/javascript “access plus 1 month”
ExpiresByType application/javascript “access plus 1 month”# Others
ExpiresByType application/pdf “access plus 1 month”
ExpiresByType application/x-shockwave-flash “access plus 1 month”# END Expire headers`
# BEGIN Cache-Control Headers <filesMatch "\.(ico|jpeg|jpg|png|gif|swf|pdf|svg|js|flv)$"> Header set Cache-Control "max-age=84600, public" # END Cache-Control HeadersHello @caersbart
Thank you for the information.
These are either some custom rules added or by some other plugin.
SInce W3TC is also adding these rules there is a chance that there was a conflict.
Thank you for sharing the information.Thank you for your help @vmarko.
Have a nice weekend.Hello @caersbart
You are most welcome!
We would really appreciate it if you could take a minute and post a review here. This will help us to continue offering a top-notch product to users.
Thanks!
The topic ‘Broken frontpage’ is closed to new replies.