# Etag support

**URL:** <https://www.ruby-forum.com/t/etag-support/245520>\
**Category:** NGINX\
**Created:** [June 5, 2013, 8:55am UTC](https://www.ruby-forum.com/t/etag-support/245520 "2013-06-05T08:55:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [June 5, 2013, 8:55am UTC](https://www.ruby-forum.com/t/etag-support/245520/1 "2013-06-05T08:55:03Z")

</div>

Are etags supported in nginx? I am running nginx/1.4.1

Posted at Nginx Forum:

> **[etag support](https://forum.nginx.org/read.php?2,239877,239877#msg-239877)**
>
> Are etags supported in nginx? I am running nginx/1.4.1

---

<div class="post-metadata">

**Author:** ![justin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@justin](https://www.ruby-forum.com/u/justin)\
**Post date:** [June 5, 2013, 9:45am UTC](https://www.ruby-forum.com/t/etag-support/245520/2 "2013-06-05T09:45:52Z")

</div>

On Wed, Jun 05, 2013 at 02:54:34AM -0400, justin wrote:

> Are etags supported in nginx? I am running nginx/1.4.1

> **[Module ngx\_http\_core\_module](http://nginx.org/en/docs/http/ngx_http_core_module.html#etag)**
>
> This directive appeared in version 1.11.8.

---

<div class="post-metadata">

**Author:** ![justin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@justin](https://www.ruby-forum.com/u/justin)\
**Post date:** [June 5, 2013, 9:54am UTC](https://www.ruby-forum.com/t/etag-support/245520/3 "2013-06-05T09:54:03Z")

</div>

I added etag on to my config, but still don’t see etags in the response  
headers.

Posted at Nginx Forum:

> **[Re: etag support](https://forum.nginx.org/read.php?2,239877,239879#msg-239879)**
>
> Are etags supported in nginx? I am running nginx/1.4.1

---

<div class="post-metadata">

**Author:** ![justin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@justin](https://www.ruby-forum.com/u/justin)\
**Post date:** [June 5, 2013, 11:55am UTC](https://www.ruby-forum.com/t/etag-support/245520/4 "2013-06-05T11:55:34Z")

</div>

On Wed, Jun 05, 2013 at 03:53:23AM -0400, justin wrote:

> I added etag on to my config, but still don’t see etags in the response  
> headers.

ETag’s are generated for static resources only. Modules that add  
dynamic contents to static resources may cause the ETag header to  
be removed from response, such as the ngx\_http\_addition\_module,  
or when gzipping a response.

---

<div class="post-metadata">

**Author:** ![justin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@justin](https://www.ruby-forum.com/u/justin)\
**Post date:** [June 6, 2013, 10:50am UTC](https://www.ruby-forum.com/t/etag-support/245520/5 "2013-06-06T10:50:26Z")

</div>

On Thu, Jun 06, 2013 at 12:10:51AM -0400, justin wrote:

> Ok, I see the etag for images, but not for javascript or css. Is this  
> because I have gzip enabled?

ETag is cleared when gzipping a response on the fly.

You can use

> **[Module ngx\_http\_gzip\_static\_module](http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html)**

for javascript and css files, in which case the responses will  
include ETag.

---

<div class="post-metadata">

**Author:** ![justin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3ab097/32.png) [@justin](https://www.ruby-forum.com/u/justin)\
**Post date:** [June 6, 2013, 6:11am UTC](https://www.ruby-forum.com/t/etag-support/245520/6 "2013-06-06T06:11:10Z")

</div>

Ok, I see the etag for images, but not for javascript or css. Is this  
because I have gzip enabled?

Thanks for the help.

Posted at Nginx Forum:

> **[Re: etag support](https://forum.nginx.org/read.php?2,239877,239906#msg-239906)**
>
> Are etags supported in nginx? I am running nginx/1.4.1
