Support

Forums

Contact Me

Nginx Specify a Vary: Accept-Encoding header

nginx (pronounced “engine-x”) is an open source Web server and a reverse proxy server for HTTP, SMTP, POP3 and IMAP protocols, with a strong focus on high concurrency, performance and low memory usage. It is licensed under a BSD-like license and it runs on Unix, Linux, BSD variants, Mac OS X, Solaris, AIX and Microsoft Windows [WikiPedia]

Instructs proxy servers to cache two versions of the resource: one compressed, and one uncompressed. This helps avoid issues with public proxies that do not detect the presence of a Content-Encoding header properly.

Configuration files are provided using Gist  https://gist.github.com/1620307 and are CONSTANTLY updated for added security and speed. Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository. I recommend you to starred them to stay up to date.

 

Just Add in /etc/nginx/nginx.conf in the http { … } section the following

 ##
 # Gzip Settings
 ##
 gzip  on;
 gzip_http_version 1.1;
 gzip_vary on;
 gzip_comp_level 6;
 gzip_proxied any;
 gzip_types text/plain text/html text/css application/json \
application/x-javascript text/xml application/xml \
application/xml+rss text/javascript application/javascript \
text/x-js; gzip_buffers 16 8k; gzip_disable "MSIE [1-6]\.(?!.*SV1)";

 

from https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching

You might also like:
Add2Home 1.7.1 for J3.0 Released
50 days ago
Add2Home 1.7.1 for J3.0 Released
This small plugin for Joomla! add a message inviting iPhone/iPad users to add the web application
cedSmugmug 2.6.2  for joomla J2.5 and J3.0 released
52 days ago
cedSmugmug 2.6.2 for joomla J2.5 and J3.0 released
CedSmugmug  has been updated to version 2.6.2 and correct one bugs and contains some nice fea
cedphotofeed 2.6.2 for joomla J2.5 and J3.0 released
52 days ago
cedphotofeed 2.6.2 for joomla J2.5 and J3.0 released
This extension for Joomla  2.5 and Joomla 3.0 allow you to inline a set of images from your f
cedPhotofeed 2.6.1 for J2.5 Released
59 days ago
cedPhotofeed 2.6.1 for J2.5 Released
This extension for Joomla! 2.5 allow you to inline a set of images from your favorite online galle
Schema Validation for Joomla 2.5 Extensions
66 days ago
Schema Validation for Joomla 2.5 Extensions
I’ve created from scratch, all Joomla extensions XSD. Without them, Joomla accept any entry in
cedTag 2.6.2 for J2.5 released for Joomla 2.5
79 days ago
cedTag 2.6.2 for J2.5 released for Joomla 2.5
cedTag provide a useful way to group related posts together and to quickly tell readers what a pos
blog comments powered by Disqus

Donations

Thank You for supporting my work