Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation of gzip_static configuration #249

Merged
merged 1 commit into from
Mar 14, 2015

Conversation

whatcould
Copy link
Contributor

The attribute was added (aa68b47717b2b ) but it was not documented in the README. I had to dig for it.

I wonder if adding http_gzip_static_module should set node['nginx']['gzip_static'] = 'yes' by default? That seems like the principle of least surprise. It took me a while to figure out why my .gz files were not being served even though I had enabled the module.

@miketheman miketheman added this to the Triage milestone Aug 23, 2014
miketheman added a commit that referenced this pull request Mar 14, 2015
Add documentation of gzip_static configuration
@miketheman miketheman merged commit f4b405c into sous-chefs:master Mar 14, 2015
@miketheman miketheman modified the milestones: 2.7.5, Triage Round 1 Mar 14, 2015
@yveslaroche
Copy link
Contributor

For better performance use this only in a location block.

https://github.com/h5bp/server-configs-nginx/blob/master/nginx.conf#L112-L115

This should be turned on if you are going to have pre-compressed copies (.gz) of
static files available. If not it should be left off as it will cause extra I/O
for the check. It is best if you enable this in a location{} block for
a specific directory, or on an individual server{} level.

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants