Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question