gzip

Java: Gzip string to output string

How do I take a string and use something like GZIPOutputStream to gzip the string and then output the zipped content as a string. My intention is to transfer the zipped content as a post variable through HTTP. ...

Enable Gzip compression and set Cache expire times in CakePHP

I am using CakePHP with Apache2. Analyzing my pages with the tool PageSpeed from Google, I find two main problems. The first is that I should enable gzipping of content, the second that I should leverage browser caching for images, javascript and css files. I have more or less found how to remedy this, but it involves changing my main ....

Shared Server not supporting gzip.

I have designed a website in ASP and uploaded on readyhosting's windows shared server. I ask them to enable gzip option from IIS web server but they are no supporting. Is there any option to compress files over network? thanks, Rau ...

Grade D on Compress components with gzip

Hi, I used the YSlow Firefox add-on and it return the follow result: ----------------------------------------------------------------------------------------- Grade D on Compress components with gzip There are 3 plain text components that should be sent compressed * http://localhost:63808/WebSite/BemVindo/ * http://localhost:63808/Web...

uncompress gzipped HTTP message

Hi everybody, I am analyzing Pcap captures with C and I need to uncompress the Gzipped body of the HTTP replies. I know that I can do that using Wireshark manually, but I would need to do it on the fly, inside my program. My understanding is that I should look into zlib and the RFC. But since it's a little analysis program, do you know...

Why does IIS6 Accept-Encoding value equal null when attempting compression with ASP.Net MVC

I have plugged in the HttpCompress module to enable compression for my MVC web application. If I run my site through the development web server (Cassini) I have no troubles with the execution of compression. However when I deploy the site to IIS6 the compression is not executing. I have checked the source code of the compression librar...

Applying GZIP for a website under IIS?

How to find out whether particular web server's GZip is enabled or not and How to apply the GZip compression for the web site under IIS 6.0? ...

iPhone and GZip

Now I know that xCode automaticly does the GZip decrompession for you within: NSData *data = [NSData dataWithContentsOfURL:URL]; And it does work if I point to a Gzip file on my server. But since my content is dynamic, I have a PHP script that rather then create a gzip file like so: $zp = gzopen($file, "r"); $data = gzread($zp, $fi...

ASP.NET Gzip script and Css on Global.asax

Hello i implement this library in my application http://www.dominicpettifer.co.uk/Blog/17/gzip-compress-your-websites-html-css-script-in-code it Works very well if i run the site in Visual Studio but when i compile my site and publish in IIS it only Gzip ASPX files not CSS or JS files. does anyone knows a better way for implement Java...

Why does HTTP::Response::decoded_content sometimes return undef even when content() return data?

I've used LWP capability to handle gzip encoded content as described here, but in some cases I randomly get unexpected results at least for the one website I've tested: $response->decoded_content could become undefined while $response->content still returns original gzip encoded response. Tried even without internal charset decoding (dec...

getting error 500 when trying to use gzip with .htaccess

Hello, I'm trying to use gzip on my site. I'm trying to compress, php, css and js files. The server is apache 1.3, and the code I have in the .htaccess file is: # compress all text & html: AddOutputFilterByType DEFLATE text/html text/plain text/xml But when I upload this, I just get an Error 500 page. Any ideas. ...

How can I convert an uncompressed InputStream into a gzip'ed InputStream efficiently?

A user uploads a large file to my website and I want to gzip the file and store it in a blob. So I have an uncompressed InputStream and the blob wants an InputStream. I know how to compress an InputStream to an Outputstream using GZIPOutputStream, but how do I go from the gzip'ed OutputStream back to the InputStream needed by the blob....

Rsync friendly gzip

I must not be the only one - I'm rsyncing .tar.gz files and notice that every time the full file gets rsynced rather than the differences. Reading into it it seems back in 1999 someone created an algorithm that fixed the issue http://svana.org/kleptog/rgzip.html (only 5% of data needed transferred) Has this gone anywhere since, how do I...

Python: Creating a streaming gzip'd file-like?

I'm trying to figure out the best way to compress a stream with Python's zlib. I've got a file-like input stream (input, below) and an output function which accepts a file-like (output_function, below): with open("file") as input: output_function(input) And I'd like to gzip-compress input chunks before sending them to output_func...

How to GZIP a XSLT webpage

Hi, I am working on a webpage and I use XSLT as template engine. I only send XML and the XSLT file to the requester and let the receiver's browser render it in HTML. I would like to know how I could GZip the XSL Stylesheet and maybe the XML I'm sending to the requester. Thank you in advance. ...

is this true? "Gzipped items will not have the same etags (even if the content did not change)"

Is it true that we should disable etags if we are compressing with apache because the etags will be different each time? Is it true for deflate too? Thanks ...

In IIS7, gzipped files do not stay that way

I have configured IIS7 to gzip static content. http://www.coderjournal.com/2008/04/iis-7-compress-javascript-gzip/ However, the files don't "stay" gzipped. Here's my use case: Request test.css file. It is not gzipped. Request it again within a few seconds. It is gzipped. Wait 5 minutes. Request test.css file again. It is not gzipped...

.NET GZipStream, and out of disk space exception

I am using the following code to write to a compressed file that I create new everytime. using (FileStream fs = File.Open(sortOrderFileName, FileMode.Create,FileAccess.Write, FileShare.ReadWrite)) using (System.IO.Compression.GZipStream gzip = new System.IO.Compression.GZipStream(fs, System.IO.Compression.CompressionMode.Compress)) usin...

Better gzip tool than SharpZipLib for Windows Mobile?

I use SharpZipLib for gzip on a Windows Mobile application written in c# I have this code public static bool gzDecompressFile(String inputFilePath, String outputFilePath) { if (!File.Exists(inputFilePath)) return false; if (File.Exists(outputFilePath)) File.Delete(outputF...

Site Doesn't Load in IE

My site is loading up perfectly in Firefox, Chrome and other browsers like Safari (albeit a bit slow). Link: http://www.dafactopedia.com It was even working with IE till yesterday but after I compressed my JavaScript code with closure compiler it doesn’t seem to load fully. If I disable JavaScript in IE it opens up but not perfectly. I ...