Forum Topic: gzip not working for my two min.js files
I am using the all in one solution provided in the book but somehow i've noticed today with yslow and google pagespeed that my two js files are not compressed with gzip. I am using:
My two minified js files:
3 Replies to “gzip not working for my two min.js files”
Can you say one way or another that the technique either worked or didn't work on your server at some point? That would tell us if something changed or if maybe a required module is not installed. For example, did the technique work for other files at some point?
Ahhhhh now i figured the difference. Ok if i am serving my site locally via mamp, get the ip for my connection to the net via whatismyip and then access the site via
18.104.22.168:8888/mypage/ (port 8888 is forwarded to my computer in the router - the ip is completely random for illustration purposes) then also my two js files get gzipped properly when tested with yslow (i get an A for gzip) and google pagespeed (i get no gzip error). but when i try the same with the test version online on the domain of my client i get the
pre.min.js not compressed. so i guess i probably have to check the httpd.conf file to see if there are any related parts that interfere? but basically i thought htaccess would be an override for httpd.conf settings. hmmm odd anyway.
Sounds like you've got the situation under control :)