FAQ Database Discussion Community


IIS 7.5 Compression creates compressed file but returns the non-compressed one

asp.net,iis,http-compression
I have trouble setting up the compressing in IIS 7.5. In the "%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" folder there are my files gzipped, but the browser recieves the original files. Even after refreshing the page again and again with Ctrl + F5. Also, I tested this in Chrome, FF and IE...

How to perform test to check whether WCF Response is compressed with httpCompression on IIS7+

wcf,iis-express,http-compression
I am building test WCF Service (PersonService) in .NET 4.5 hosted on IIS 8 express. I also have installed dynamic compression on IIS. As far as I know WCF 4.0 onward compression is enabled by default. To enable httpCompression at service I have updated Web.Config as follows: <?xml version="1.0"?> <configuration>...

HTTP-Compression in rails not working for JSON-responses

ruby-on-rails,ruby,http,nginx,http-compression
I have rails 3.2.1 application and nginx. In nginx configurations I set gzip on;, and compressing works for pages, css, js files. But it does not work for JSON responses. As I found the solution for rails is to add: config.middleware.use Rack::Deflater into application.rb. And it helps: before response was...

Compressing Undertow server responses

java,http-compression,undertow
i have a programmatic Undertow server setup. Static content is served by Undertow as well, without a reverse proxy. Java code for Undertow startup looks like this: ResourceManager resourceManager = new FileResourceManager(new File("deploymentDir"), 100); DeploymentInfo servletBuilder = Servlets.deployment() .setResourceManager(resourceManager) .setDeploymentName("testDeployment") .setContextPath("/"); DeploymentManager manager = Servlets.defaultContainer() .addDeployment(servletBuilder); manager.deploy(); Undertow.Builder builder =...

Can't Enable Gzip-compression in apache 2.2.15

php,apache,http-compression
I know this has been asked a lot, but, believe me, is not duplicate ;) I have a Linux server (CentOS 6.4) with Apache 2.2.15 Installed. What do I have? I have this line in /etc/httpd/conf/httpd.conf : LoadModule deflate_module modules/mod_deflate.so I have this line in my .htaccess file : SetOutputFilter...