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 etag support at the http level #1183

Merged
merged 1 commit into from
Feb 26, 2018

Conversation

bryangwilliam
Copy link
Contributor

This change adds support for enabling/disabling the etag nginx directive in the http context. http://nginx.org/en/docs/http/ngx_http_core_module.html#etag

If no value is supplied it will not add anything and allow the nginx-defined default to take effect.

Copy link
Member

@dhollinger dhollinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a great, and simple, addition

@dhollinger dhollinger added the enhancement New feature or request label Feb 26, 2018
@@ -96,6 +96,10 @@ http {
lingering_timeout <%= @lingering_timeout %>;
tcp_nodelay <%= @http_tcp_nodelay %>;

<% if defined? @etag -%>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<% if @etag -%> is fine here since etag is either undef or a yes\no string, not a boolean.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing. I just pushed a fix for this, along with a small formatting change for the whitespace so the config file will not get an extra newline when no value is set.

@alexjfisher alexjfisher merged commit 99c13aa into voxpupuli:master Feb 26, 2018
@alexjfisher
Copy link
Member

@bryangwilliam Thanks!

cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Sep 13, 2019
Rubueno pushed a commit to Rubueno/puppet-nginx that referenced this pull request Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants