Questions tagged [etag]

ETag is an HTTP Entity Tag. Use this tag if you have a question about HTTP requests using ETag, If-Match or If-None-Match headers, or the generation and comparison of ETag values.

An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL. If the resource content at that URL ever changes, a new and different ETag is assigned. Used in this manner ETags are similar to fingerprints, and they can be quickly compared to determine if two versions of a resource are the same or not.

http://en.wikipedia.org/wiki/HTTP_ETag

624 questions
3
votes
1 answer

Add ShallowEtagHeaderFilter in Spring Boot MVC

I'm trying to adjust my application configuration in order to setup ETag support. I have just checked this SO question, so let me say where my code is different from it: I don't use any xml configuration file whatsoever. I'm using different…
resilva87
  • 3,325
  • 5
  • 32
  • 43
3
votes
1 answer

disabling gzip if etag exists in proxy_pass response

I'm new to nginx. Is there a way to disable gzip if proxy_pass reutrns the ETag header. I.E: gzip on; . . . location /foo/bar { proxy_pass http://server:123; if ($upstream_http_etag) { gzip off; } } Basically…
Vitali Bichov
  • 988
  • 2
  • 12
  • 26
3
votes
1 answer

disabling gzip when etag returned from upstream used

Following this ticket: http://trac.nginx.org/nginx/ticket/377 gzip removes etag headers. Is there a way to check if upstream returned the ETag header and if it did to disable gzip?
Vitali Bichov
  • 988
  • 2
  • 12
  • 26
3
votes
2 answers

Can Varnish generate ETags?

Is there some way to have Varnish generate a ETag for a backend response it recieves and add it to the response? I would prefer to have all ETag logic in Varnish instead of configuring this for all my backend nodes individually. I'm using Varnish…
grack
  • 31
  • 1
  • 3
3
votes
1 answer

is this true? "Gzipped items will not have the same etags (even if the content did not change)"

Is it true that we should disable etags if we are compressing with apache because the etags will be different each time? Is it true for deflate too? Thanks
benjisail
  • 1,646
  • 5
  • 21
  • 35
3
votes
1 answer

Is there automatic ETag handling in OData with WebApi 2 and Entity Framework (code first)?

WCF Data Services with Entity Framework is automatically handling ETag headers (defined using [ETagAttribute] or automagically from [TimestampAttribute]). I created WebApi2 OData controller from scaffolding. My entity have a valid timestamp…
stefando
  • 495
  • 1
  • 7
  • 13
3
votes
1 answer

HTTP - Should I use Last-Modified as an Etag?

I can't send Etag header from my site I'm not sure is it PHP or Nginx issue but I can send a Last-Modified header I discovered that I can do something like this to replace etag // response last-modified: 2929606074 // request if-modified-since:…
user2678106
3
votes
1 answer

mod_cache + ETag: Apache does not reply 304 to client

I have a problem with mod_cache and ETags. Here's my scenario: Environment: Firefox, Apache 2.2.22 (Mac OSX default), any Web App, Apache is a proxy to the Web App Initial State: Browser has an (expired) cache version of doc /aaa, ETag=123 Apache …
alex.net
  • 286
  • 1
  • 6
3
votes
1 answer

How to enable Etag in development mode in rails 3.2.12 using WEbrick / Thin

I am running Webricks/Thin server locally for my development environment however i couldn't get to return Etag in my response. I've tried various options suggested on SO to add Etag or ConditionalGet rack middleware components but to no avail. Here…
anurag
  • 117
  • 1
  • 8
3
votes
1 answer

using ETag but the status code is always 200 and not 304

When I try to request for the the http://graph.facebook.com/me?fields=friends with the ETag I always get the request code as 200 every time. we I made two back to back response and checked it. The change was at the end it had a section for…
3
votes
2 answers

How to use Windows Azure Table Storage Timestamp or Etag field

I am developing a node.js application on Windows Azure Websites (IISNode) and have installed the Azure SDK module for node.js my question is how to use the etag or timestamp field in table storage. Is it a matter of "me" doing something e.g: if…
PazoozaTest Pazman
  • 749
  • 12
  • 33
3
votes
1 answer

Renewing a HTTP ETag

I'm using WebDav to put metadata on the files and folders of a server, along with a cache to avoid unnecessary requests to the server, based on the ETag property of the files. Basically, I send a HEAD request and check whether the ETag matches the…
Timst
  • 930
  • 1
  • 11
  • 26
3
votes
1 answer

Rails 3: How to prevent the browser from loading a page from cache on back/forward navigation?

I have the following situation: Page A: /something/new Which posts back to: /something/create Which redirects to Page B: /something/edit So far it all works. Now, /something/edit is a page that lets you do a bunch of things through AJAX, so it…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
3
votes
1 answer

Configuring ETags with Http module in asp.net

i'm optimizing our company web site with seo optimization and yslow. but in yslow the ETAGS are F . I've gone through tens of web sites and tutorials and the best option was using an HTTP Module. I've done so and tried several modules but none shows…
imi jan
  • 41
  • 1
  • 5
3
votes
1 answer

Concatenate content of TAGS files from different directories

I'm referring to TAGS file generated by ctags or etags in order to have some code navigation in Emacs with M-.. The typical project looks like this: Large standard library (more than 100 files, but rarely updated). Project-specific library (updated…
user797257