Skip Navigation

[Resolved] I have problem when viewing the page from a different or a cache-free browser.

This thread is resolved. Here is a description of the problem and solution.

Problem: It seems like my Content Template styles are not applied when I visit the page after clearing my browser cache.

Solution: In this case, it seems like the issue was related to the SG Optimizer setting "Defer Render-blocking JS" causing problems for logged-out Users. Disabling this option prevents the issue, and styles are applied correctly for both logged-in and logged-out Users.

This support ticket is created 4 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 7 replies, has 2 voices.

Last updated by konstantinosM 4 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1866473
printscreen2.jpg
printscreen1.png

So I have this page that is created with toolset blocks and wp blocks. When I am in the browser with Cache and I update the page, everything is fine. when I clear cache or use a different browser, I see a completly broken page.

Please see print screens 1 (with cache) and 2 (Cleared Cache or new browser).

I tried some basic debugging to see what is at fault (like deactivating some plugins), but the other pages (built with elementor) stay as they should be on every browser.

#1866827

Hi, I'll be glad to take a closer look if you provide login credentials in the private reply fields here. Let me know where I can find this page on the front-end of your site and I'll give you some feedback.

#1866999

Thanks, it looks like some Toolset files aren't loaded as expected when the User is not logged-in. It may have something to do with the security plugin, but I'm not quite sure yet. Is it okay for me to temporarily disable some plugins on this staging site to run some more tests?

#1867157

Please, go ahead!

#1867807
Screen Shot 2020-12-07 at 8.45.38 AM.png

It seems that this issue is resolved when I disable the "Defer Render-blocking JS" option in the Frontend Optimization tab of SG Optimizer configurations. Some Toolset files are required to be render-blocking right now, and this option can prevent some required functionality. I've included a screenshot here so you can see the setting in wp-admin. For now, we recommend you disable this option for best results. I have disabled this option for you, and now I can see the correct styles when logged-out or logged-in. Can you confirm?

#1867965

Yes! It is as it should be with or without loggin in. But what about seeing different things with a cached and with an uncached browser?
I mean, How does the cache affects the page, and how can i effectively delete it, so i have an accurate viewing of the page im building?

#1867981
Screen Shot 2020-12-07 at 10.49.04 AM.png
Screen Shot 2020-12-07 at 10.48.22 AM.png

I'm not sure browser caching has anything to do with this issue. I think that browser caching was unrelated. If I disable browser caching in my browser tools, I see the correct styles applied whether or not I'm logged in to wp-admin (see screenshots here). My guess is that when you tested before, you not only cleared cache, but you also cleared cookies. This would have effectively logged you out of the site, and the problem would have reappeared. It's also possible that the SG Caching layer had something cached. Now that the SG Optimizer settings have been updated and I have purged the SG Cache, this should not be a problem anymore. Are you still seeing a problem when you clear cache? I'm not able to replicate that. Can you tell me step by step how to recreate the issue?

#1868055

I dont know how it happened, thats why I try to understand it!
If cache is not the problem then everything is fine!
I'll contact you, if it re-appears!
Thank you very much for your help!