Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanadalee/ngx_http_compress_vary_filter_module
A nginx header filter module used instead of the 'gzip_vary' directive
https://github.com/hanadalee/ngx_http_compress_vary_filter_module
brotli gzip nginx nginx-module zstd
Last synced: 13 days ago
JSON representation
A nginx header filter module used instead of the 'gzip_vary' directive
- Host: GitHub
- URL: https://github.com/hanadalee/ngx_http_compress_vary_filter_module
- Owner: HanadaLee
- License: bsd-2-clause
- Created: 2024-11-04T05:00:11.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T05:03:34.000Z (2 months ago)
- Last Synced: 2024-12-21T23:48:07.537Z (13 days ago)
- Topics: brotli, gzip, nginx, nginx-module, zstd
- Language: C
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngx_http_compress_vary_filter_module
# Name
ngx_http_compress_vary_filter_module is a header filter module used instead of the 'gzip_vary' directive.# Table of Content
* [Name](#name)
* [Status](#status)
* [Synopsis](#synopsis)
* [Installation](#installation)
* [Directives](#directives)
* [compress_vary](#compress_vary)
* [Author](#author)
* [License](#license)# Status
This Nginx module is currently considered experimental. Issues and PRs are welcome if you encounter any problems.
# Synopsis
```nginx
server {
listen 127.0.0.1:8080;
server_name localhost;location / {
gzip on;
compress_vary on;proxy_pass http://foo.com;
}
}
```# Installation
To use theses modules, configure your nginx branch with `--add-module=/path/to/ngx_http_compress_vary_filter_module`.
# Directives
## compress_vary
**Syntax:** *compress_vary on | off;*
**Default:** *compress_vary off;*
**Context:** *http, server, location*
Enables or disables inserting the “Vary: Accept-Encoding” response header field if the directives gzip, gzip_static, or gunzip are active.
Unlike gzip_vary, if a Vary header exists for the original response, it will append the Accept-Encoding to the original Vary header. In addition, multiple Vary headers will be merged into one and separated by commas. Duplicate header values in Vary will be removed.
# Author
Hanada [email protected]
# License
This Nginx module is licensed under [BSD 2-Clause License](LICENSE).