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
5
votes
3 answers

Emacs : problem with tags file?

I am using ctags to create tags for my Emacs to read symbols from, using cygwin. Emacs says "visit-tags-table-buffer: File /home/superman/tags is not a valid tags table" here are my options to find files and generate tags. $>find . -type f -regex…
Ramadheer Singh
  • 4,124
  • 4
  • 32
  • 44
5
votes
3 answers

How do I make sure my users are downloading the new version of my S3 File?

This is inside bash file: s3cmd --add-header='Content-Encoding':'gzip' put /home/media/main.js s3://myproject/media/main.js This is what I do to upload my backbone compressed file into Amazon S3. I run this command every time I make changes to my…
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
5
votes
0 answers

Does ETag invalidate the Cache-Control header?

I am fetching a resource from my RESTful web service, and in the response I add these two headers: Cache-Control: public, max-age=120 ETag: "3D03F8066015A1438532E049AE5E16EA" The first time the browser got this response it cached it correctly for 2…
Matias Cicero
  • 25,439
  • 13
  • 82
  • 154
5
votes
1 answer

Why digest are used in Rails 4 for static content instead of ETag

I think that HTTP's ETag is exactly the mechanism for invalidating stale cached content. And digests are used for the same sake. Why are they better and why etags are not enough?
5
votes
0 answers

Apache + Etags -> returns 200 and send content instead of 304

I have this Apache conf that uses Etags: ServerName xxx.co SSLEngine On SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM SSLCertificateFile…
Sebastien Lorber
  • 89,644
  • 67
  • 288
  • 419
5
votes
1 answer

Generating an Etag based on body in mod_perl

I have some old mod_perl code that generates dynamic content. I was asked to implement sending an Etag on each reply. It seems the way to do this might be to add a mod_perl handler, but this content is generated dynamically, so I need to make the…
5
votes
1 answer

How and for how long do browsers store Etags?

I wish to implement ETag based cache-control, and I am wondering how long ETags are stored in a browser and if they can be kept for longer than the current session. I have the server setting and sending ETags for responses correctly, and I am…
Eliendrae
  • 51
  • 1
  • 2
5
votes
1 answer

How to use ETag to throw exception on insert if ETag doesn't match (except when it's *)

I need to be able to insert an entity to an azure storage table under these conditions: if it doesn't exist, insert. if it exists, but I specify ETag to be *, then replace. if it exists, but ETag has another value, then throw StorageException with…
David S.
  • 5,965
  • 2
  • 40
  • 77
5
votes
1 answer

Automatically expire NSURLCache with max-age=0

I am using NSURLCache with AFNetworking. Caching works fine but there is no way to check if a response was actually retrieved from cache. To check if a cached version is available, I use [[NSURLCache sharedURLCache]…
alex
  • 4,922
  • 7
  • 37
  • 51
5
votes
1 answer

eTags misconfigured

YSlow gives me the "There are 94 components with misconfigured ETags" -message. I have configured them with .htaccess "FileETag MTime Size" on Apache. Images show etags in this format: 245975c-3f4-9d8ae780. We are not going to scale or use a…
Sampsa
  • 701
  • 1
  • 5
  • 18
5
votes
4 answers

What's the suggested way of storing a resource ETag?

Where should I store the ETag for a given resource? Approach A: compute on the fly Get the resource and compute the ETag on the fly upon each request: $resource = $repository->findByPK($id); // query // Compute ETag $etag =…
gremo
  • 47,186
  • 75
  • 257
  • 421
5
votes
2 answers

Backbone.js parse not-modified response

I have a server that works with a header ETag. Backbone refers to the API for the first time: everything is good, the response received and parse. Second time: backbone sends to the server ETag, in response receives NotModified. And Backbone trying…
Anthony Tsivarev
  • 881
  • 3
  • 13
  • 25
5
votes
1 answer

How to remove the HTTP ETag header by IIS 7.5?

We wish to remove the ETag header added automatically by IIS 7.5. None of the online suggestions worked for us, which may be due to a different version of IIS. One of the solutions we have come across repeatedly included creating a new ETag HTTP…
Xen
  • 442
  • 1
  • 4
  • 13
4
votes
4 answers

.htaccess not working - only caching images and not JS or CSS

Duplicate: Why isn’t my javascript & css caching ? I'm noticing that I'm only receiving 304 HTTP codes (cached content) for images but not JavaScript or CSS. My .htaccess file is: Options -Indexes Options +FollowSymLinks # Enable ETag FileETag…
MrDoAlot
4
votes
1 answer

How can I find the references of a class, method, variable in Emacs with Etags?

I'd like to find all the references to a class, method, variable in Emacs, the same way I'm able to do it in Eclipse with Ctrl+Shift+G (or Cmd+Shift+G on the Mac) once I've setup my project's ETags. I can navigate the code fine, but finding…
Gubatron
  • 6,222
  • 5
  • 35
  • 37