# Enable the Etag for dynamic content

**URL:** <https://www.ruby-forum.com/t/enable-the-etag-for-dynamic-content/244722>\
**Category:** NGINX\
**Created:** [June 3, 2016, 1:57pm UTC](https://www.ruby-forum.com/t/enable-the-etag-for-dynamic-content/244722 "2016-06-03T13:57:56Z")\
**Posts on this page:** 2\
**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 3, 2016, 1:57pm UTC](https://www.ruby-forum.com/t/enable-the-etag-for-dynamic-content/244722/1 "2016-06-03T13:57:56Z")

</div>

Hi All,

I’m using ngnx version nginx/1.10.1, php application in back end  
connected  
via unix socket. We are planning to enable the cache behavior for  
dynamic  
contents using cache control headers and etag. We have tried below below  
method to enable the etag, but none of the method working as expected.

1. Compiled the nginx source code (1.10.0) with dynamic etag module.
2. upstream configuration is used to to connect via unix socket instead  
of  
location method.

Any suggestions will be helpful

---

<div class="post-metadata">

**Author:** ![RAKESH\_P\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@RAKESH\_P\_B](https://www.ruby-forum.com/u/RAKESH_P_B)\
**Post date:** [June 3, 2016, 4:08pm UTC](https://www.ruby-forum.com/t/enable-the-etag-for-dynamic-content/244722/2 "2016-06-03T16:08:47Z")

</div>

Hello!

On Fri, Jun 03, 2016 at 05:27:07PM +0530, RAKESH P B wrote:

> location method.
> 
> Any suggestions will be helpful

Try generating entity tags in your application instead.

–  
Maxim D.

> **[nginx](http://nginx.org/)**
