Failed to load resource error in conjunction with autoptimize
-
I have already resolved this issue, but I wanted to bring it to your attention in case you have another / better solution.
We recently switched hosts and shortly after started getting the following errors in relation to my autoptimize files:
Failed to load resource: the server responded with a status of 403 ()
Refused to apply style from ‘https://emriver.com/wp-content/cache/autoptimize/css/autoptimize_37c952cdd3200b0518a7dfc174ae1bfe.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
I’ve seen this error in the past when enabling or disabling plugins and it was usually resolved by clearing my cache, via W3 Total Cache. But clearing the cache no longer seems to be working. I thought it might be related to my browser cache, but clearing my browser cache also did not resolve the issue.
Solution:
We were able to fix the problem by removing these lines from our htaccess file:
# RewriteCond “%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” -f
# RewriteRule .* “/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” [L]Please let me know your thoughts on this issue and if there might be something else going on that I missed.
The page I need help with: [log in to see the link]
- The topic ‘Failed to load resource error in conjunction with autoptimize’ is closed to new replies.