Firefox 38.0.1 throws errors in console with JS and CSS htaccess compression enabled

我怕爱的太早我们不能终老 提交于 2019-12-11 07:07:41

问题


I have been working on improving performance on my Wordpress site, one of the things I have done, I switched to dynamic delivery of CSS and JS files (so they are compressed by PHP), which worked very well for performance tests, it seems as though firefox is throwing some errors but the website loads.

Now, I have ALSO added this to the .htaccess in my JS and CSS folder (wp-incldues) on a wordpress site:

<filesMatch "\.(js|css)$">
Header set Content-Encoding x-deflate
# Header set Content-Encoding compress
# Header set Content-Encoding x-gzip
</filesMatch>

for compressing JS and CSS files (since that was flagged in a speed test...), now everything works fine on IE11 and Chrome 43 and on my Android mobile as well, as well as speed test sites, such as http://www.webpagetest.org/ which in fact was recommending to compress those files there..

BUT the bad thing is that the website appears broken in Firefox 38.0.1, it cannot load my menus and Revolution Slider (image carousel).

I've temporarily removed the .htaccess from those folders, speed test in fact flags as a potential for optimisation but at least the website loads properly in firefox now.

here is a collage that shows the errors...https://dl.dropboxusercontent.com/u/28979877/FirefoxErrorsCollage.png

any thoughts? the website is www.flower-beach.com

many thanks, Gabrio

来源:https://stackoverflow.com/questions/30410728/firefox-38-0-1-throws-errors-in-console-with-js-and-css-htaccess-compression-ena

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!