GenerateBlocks styles missing for logged-out visitors
-
I wanted to share a fix for an issue I ran into in case it helps someone else.
I was building pages with GenerateBlocks and GenerateBlocks Pro and everything looked correct in the editor and on the front end when logged in. However, when viewing the site logged out or in a private browser window, some GenerateBlocks layouts were broken and the flexbox styles were missing.
After a lot of testing, I found the cause was a setting in the Admin and Site Enhancements (ASE) plugin:
Disable version number on static resource URLs referenced in
<head>This setting applies to non-logged-in visitors and is meant to improve cacheability and hide WordPress version details. In my case, it caused GenerateBlocks styles to stop loading correctly on the public front end.
FixTurning off that ASE setting immediately fixed the issue.
Summary- Logged-in view: worked normally.
- Logged-out/private view: GenerateBlocks styles broke.
- Cause: ASE setting to remove version numbers from static resource URLs in
<head>. - Fix: disable that ASE option.
I’m posting this in case anyone else is troubleshooting a strange “works when logged in, broken when logged out” GenerateBlocks layout issue.
You must be logged in to reply to this topic.