0

I have this setup in my httpd.conf file:

<files *.js>
SetOutputFilter DEFLATE
</files>

but for some reason, nothing is being compressed. I've cleared the cache in my browser and restarted my apache server. Why am I not get file compression?

LordZardeck
  • 7,953
  • 19
  • 62
  • 119
  • this might help: http://stackoverflow.com/questions/6405347/apache-compression-deflate-js-and-css-files-not-compressed – Book Of Zeus Feb 17 '12 at 04:26
  • 1
    i tried clearing the cache, I also use the AddOutputFilterByType. Neither works. I'd rather add compression my file extension though. – LordZardeck Feb 17 '12 at 04:47

1 Answers1

0

Found the answer. I had to add this line of code before the setoutputfilter:

LoadModule deflate_module modules/mod_deflate.so
LordZardeck
  • 7,953
  • 19
  • 62
  • 119