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
4
votes
2 answers

Remove Etag Header in express

I have searched a lot and still couldn't find a solution, I am using nodejs with express which is setting etag to true by default, I tried all of the solutions i found online and it is still set, examples: res.set('etag',…
Labib Ismaiel
  • 1,240
  • 2
  • 11
  • 21
4
votes
1 answer

In Nginx, "etag" directive doesn't work for proxy_pass?

I'm using Nginx 1.9.2 and following is my configuration upstream httpserver0{ server 127.0.0.1:35011 max_fails=3 fail_timeout=30s; #H_server0 …
Hanfei Sun
  • 45,281
  • 39
  • 129
  • 237
4
votes
1 answer

Does if-no-match need to be set programmatically in ajax request, if server sends Etag

My question is pretty simple. Although while searching over, I have not found a simple satisfying answer. I am using Jquery ajax request to get the data from a server. Server hosts a rest API that sets the Etag and Cach-control headers to the GET…
Irshad
  • 1,016
  • 11
  • 30
4
votes
0 answers

Android WebView cache doesn't expire

in my Android App I use a WebView and got a problem with caching. After a file is cached the WebView just keeps it forever (or at least until I delete the cache manually). In the Apache Access-Log I see that the WebView doesn't send requests once…
Norkos
  • 171
  • 1
  • 13
4
votes
1 answer

HTML ETags and Github Pages

I am taking a course at Udacity and we are learning about the caching system that the ETags provide: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching I am using GitHub pages, and from an answer…
Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
4
votes
2 answers

Does If-None-Match header overrules Cache-Control: max-age?

I have a webapp that serves an image: I'm clearly setting the Cache-Control header properly, and the web server is setting the Etag. The problem is that the resources is being If-None-Matched every single time effectively ignoring the Cache-Control…
Pablo Fernandez
  • 103,170
  • 56
  • 192
  • 232
4
votes
2 answers

HTTP ETags and HTTP Redirects

I have a webserver that issues the ETag header on responses and checks the If-None-Match header from the client, if present. The client in this case, is not a web browser but an extension of go's builtin net/http http.Client type. Here is my code…
Eric Urban
  • 3,671
  • 1
  • 18
  • 23
4
votes
2 answers

Get scheduled extra updates from Doctrine UnitOfWork

I have a Doctrine Event Listener that listens to the onFlush event. I use it to update an eTag on an entity when saved. I need to get access to the entities scheduled for deletion, so I can access their associated object, however: I'm using a…
Adam
  • 5,091
  • 5
  • 32
  • 49
4
votes
0 answers

IE does not return If-None-Match header over https

I have a problem with caching content using etags on IE over https. Chrome and Firefox allow me to successfully cache content using a combination of If-Modified-Since and If-None-Match The If-None-Match header is important because the same page…
4
votes
2 answers

YSlow giving inconsistent results on ETags

When I run YSlow against my site, I get an "F" on the "Configure ETags" item; it claims that there are no etags for many (all?) of my images, stylesheets, etc. However, if I run the test on one of those images directly, I get an A on the etag test.…
Craig Walker
  • 49,871
  • 54
  • 152
  • 212
4
votes
0 answers

Does the iOS Networking Framework (NSURLCache) transparently handle ETags?

We are wondering, whether NSURLCache transparently handles ETag based caching headers. Asked differently: If correctly setting up NSURLCache, will the iOS networking framework automatically "remember ETags per request URI" and add them to request…
Ralf
  • 2,512
  • 4
  • 24
  • 26
4
votes
1 answer

spring's ETag filter is not effective when I use async servlet (spring 3.2)

Recently we use async feature in servlet 3.0 with spring 3.2, but then our ShallowEtagHeaderFilter was not effective at all, I think it must be the framework flush the response before my content was processed ... How to solve it? Anyone has…
lzj
  • 41
  • 2
4
votes
1 answer

AFNetworking returns 200 when should receive 304 - ETag

I'm tring to use the etag to cache my images, the first time it downloads all the images like it should however the second time it does too when it should enter the failed block with 304. I've tried making the request externally and I get 304 like…
Mike Bryant
  • 2,455
  • 9
  • 39
  • 60
4
votes
1 answer

GET request with "If-Match" and ETags

I'm working on implmenenting ETag functionality for a RESTful service, and I'd like to be as close to the HTTP spec as possible. The spec however is not as clear as it probably should be. Specifically: The If-Match header - what are it's semantics…
Eugen
  • 8,523
  • 8
  • 52
  • 74
4
votes
1 answer

Android Image loader library with support for ETags, If-Modified-Since

I've been using for some time Android Http Image Manager, and recently I switched over to Android Universal Image Loader I'm afraid neither of them have support for verifying if local cache is up-to-date. What I'm currently looking for is an Image…
Marek Sebera
  • 39,650
  • 37
  • 158
  • 244