homepage Welcome to WebmasterWorld Guest from 54.226.136.179
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
uncompress on accept encoding
how to inflate for not gzip able internet connections
jetteroheller

WebmasterWorld Senior Member jetteroheller us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4557567 posted 9:00 pm on Mar 22, 2013 (gmt 0)

Just changed to an other web server.

At my old host, they refused to use the required modules,
so I had as an emergency solution:

RewriteCond %{HTTP:Accept-Encoding} !gzip
RewriteRule ^(.+\.($types))\$ [$site_translated...] [R=307,L]

My new host told me, that he has the required modules and all goes automatic.

But as I checked with web-sniffer.net
I got back the same headers and length when I tested with
Accept-Encoding: gzip checked and unchecked

So I think there is something wrong and I have to add something to my .htaccess

My CMS compresses all htm and js files on my own computer and uploads to the server the compressed files.

AddEncoding gzip .js
AddEncoding gzip .htm

Is in my .htaccess

But what to do to deliver an the file inflated, when there is no accept enodicng gzip in the request?

 

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4557567 posted 9:53 pm on Mar 22, 2013 (gmt 0)

Before you start tearing out your hair: Do you need to make a rule? How many humans don't send this header? That is: how many of your own, particular humans? (I specify this because I myself get human visitors that would get auto-blocked from many sites. It's about the visitors you yourself want, not the ones that someone else might want.)

A quick riffle through yesterday's logged headers suggests that the only ones who don't send Accept-Encoding --with gzip somewhere in the list, usually first-- are second-class robots.* You don't really need to make life easier for them, do you?


* The major search engines must all send the header, because they didn't come up in a quick-and-dirty search.

phranque

WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 4557567 posted 10:00 pm on Mar 22, 2013 (gmt 0)

mod_deflate should look for the Accept-Encoding header and compress if acceptable based on how your output filters are configured.

My CMS compresses all htm and js files on my own computer and uploads to the server the compressed files.

are these compressed files uploaded as .gz file types?
are you also uploading the uncompressed versions?

you should only use "AddEncoding gzip" for the gzipped versions of the files and you need a way to serve uncompressed versions.
i don't really see a clean way to reinflate/decompress the output of a precompressed resource based on the Accept-Encoding header.

jetteroheller

WebmasterWorld Senior Member jetteroheller us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4557567 posted 10:26 pm on Mar 22, 2013 (gmt 0)

@lucy24

It's about 2% of my AdSense income.

As I mentioned, I redirected at my old host to inflate.pl

So it was possible to determine by Googla Analytics hwat parts of my AdSene income come from gzip accepting and not accepting sources.

It's declining every year, but it's still that users have gzip unable internet connections.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved