http-compression

Mysterious XHTML Validation Error

Hello guys, i am trying to validate homepage of my new website and looks like i have a mysterious trouble. If i use W3C Validator's copy-paste page source function, i only receive one warning and my page validates. However if i use link input to validate my page it displays following error: A fatal error occurred when attempting to de...

GZipped files not being served for websites hosted on IIS 7

I have enabled static compression for the websites in IIS, also I have the following settings in IIS applicationHost.Config file. <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"> <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" /> <staticTypes> <add mimeTy...

IIS 7 compression not working

Hi guys, I have a Windows server 2008 R2 with IIS 7. By default when you create a site in IIS, Compression is enabled. I checked the Compression module and both Checkboxes are checked. Now, I am using fiddler to check if pages are being compressed but it seems they are not as the No Compression is selected and the page size is over 10...

ASP.NET MVC - compression + caching

I've seen a number of options for adding GZIP/DEFLATE compression to ASP.Net MVC output, but they all seem to apply the compression on-the-fly.. thus do not take advange of caching the compressed content. Any solutions for enabling caching of the compressed page output? Preferably in the code, so that the MVC code can check if the page...

Handling HTTP ContentEncoding "deflate"

What InputStream type should be used to handle URLConnection streams that have HTTP Content-Encoding set to deflate? For a Content-Encoding of gzip or zip I use a GZIPInputStream, no problem. For a Content-Encoding of "deflate" I have tried using InflaterInputStream and DeflaterInputStream but I get java.util.zip.ZipException: unk...

Rack rack.input variable getting truncated?

I wrote a piece of Rack Middleware to automatically unzip compressed request bodies. The code seems to be working just fine, but when I plug it into my rails app, I get a failure "Invalid JSON" from ActionController::ParamsParser. As a debugging mechanism, I'm writing both the zipped content, and the unzipped content to a file (to make...