P
P
pvgdrk2015-06-13 17:31:30
Apache HTTP Server
pvgdrk, 2015-06-13 17:31:30

How to disable compression of scripts received from the server?

Deployed a Django project to a virtual machine in Azure. I launched the site and saw that the scripts come to the user in a compressed form. For example, there is a mainScript.js script, and mainScript.pagespeed.blabla.js comes to the client. The script is compressed, all comments are removed. On a production server, this is certainly fine, but while I'm testing, I need the script to remain unchanged.
As I understand it, the mod_deflate Apache module is responsible for compression, but perhaps not only it, something else (what?).
In the httpd.conf settings, I commented out the line #LoadModule deflate_module modules/mod_deflate.so
In deflate.conf I tried to comment out all the lines:

<IfModule mod_deflate.c>
          #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
          #AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
          #AddOutputFilterByType DEFLATE application/rss+xml
</IfModule>

It did not help. The scripts still come in a compressed form (for the first time after the reboot, not in a compressed form).
How to disable compression of scripts received from the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-06-13
@pvgdrk

mod_deflate is no good.
the culprit is mod_pagespeed .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question