looks like you have HTML in a page cache which refers to files that are already removed from Autoptimize’s cache, try clearing any page cache you might have and it should be fixed @kalaydee
hope this helps,
frank
Hi Frank, I’ve already tried that several times but it still doesn’t work.
The site loads the CSS whenever I’m logged in as the admin, but it doesn’t when I’ve logged out. Any idea why this happens?
Thanks.
The site loads the CSS whenever I’m logged in as the admin, but it doesn’t when I’ve logged out.
well, that would if you have the option to also run autoptimize for logged on users off.
based on what I could see requests for the autoptimized CSS (and JS) returned a “file not found” (404) error. as AO only removes files when you click on “save changes and empty cache”, either you clicked that option to save changes in the configuration (try the button next to it instead) or something else is removing autoptimized files from the cache?
Run for logged off users? How do you do that?
well, there’s an option “Also optimize for logged in users?” which is active by default. if you un-ticked that, you would see an un-autoptimized site when logged in?
Hey Frank, I’ve tried selecting and deselecting the option for “Also optimize for logged in users?”, buut the site is still broken.
I’ve tried selecting and deselecting the option for “Also optimize for logged in users?”, buut the site is still broken.
I mentioned the option as an explanation of why it might be it worked as logged in user but not for others, this indeed cannot solve files being removed from cache somehow I’m afraid.
The only solution would be to found out how files are being removed from cache (you clicking “save changes & empty cache” on Autoptimize’s settings screen?) and making sure that does not happen.
frank