How can I gzip my JavaScript and CSS files?

后端 未结 6 1011
独厮守ぢ
独厮守ぢ 2021-02-05 07:52

I have a problem, I have to gzip a prototype Lib, but i totaly have no idea how to do this, where to start and how does it works. :)

I find some tutorials but that wasn\

6条回答
  •  梦谈多话
    2021-02-05 08:15

    I above example similar to this worked great but didn't compress javascript. I needed to add application/javascript.

    AddOutputFilterByType DEFLATE text/html text/xml text/css text/javascript application/javascript 
    

提交回复
热议问题