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

msg:4557569 | 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

msg:4557582 | 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

msg:4557583 | 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

msg:4557591 | 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.
|
|
|