Skip to content

nulab/nginx-gzip-filter-allow-weak-etag-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Nginx patch to allow gzip filter to keep weak ETag

Nginx gzip filter module removes ETag every time gzip compression being applied whether the ETag is strong or weak. However, a weak ETag validator doesn't require that the resources to be compared are byte-for-byte identical. Hence a weak ETag header should be kept during gzip compression. Actually the latest version of nginx (1.7.x) has ETag downgrade functionality instead of clearing all ETag. ( see here )

Dislike the latest version's approach, this patch simply prevents gzip filter from removing ETag when the ETag is weak.

Installation

tar zxfv nginx-1.6.0.tar.gz
cd nginx-1.6.0
patch -p1 < ../nginx-1.6.x-gzip-filter-allow-weak-etag.patch
./configure ...

References

About

Nginx patch to allow gzip filter to keep weak ETag

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published