title: How to enable ETag headers on Nginx for static files?
body: <p>I'm using Nginx as a webserver and want to implement a browser caching method so that the users keep copies of static, unchanged files locally and download only changed files. One of the propositions was to use the file's timestamp to figure out the changed files and refresh them only, but this is not possible in my case since after every new deploy, a new version of the whole web application is created, and all the files' timestamps change.</p>
  <p>I researched a little about the ETag header, which seemed like a pretty good solution, but I found out that Etags are not officially supported by Nginx yet.</p>
  <p>Is there any way of implementing the Etags on Nginx or alternative solutions?</p>