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
1 answer

Emacs TAGS table is confused by #line directive in lex/yacc files

I am trying to generate TAGS tables using etags for a large software project. The TAGS file ends up having entries to non-existent files at top level instead of the existent ones in a sub-directory due to #line directives in the lex/yacc generated…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
5
votes
3 answers

Remove Etag from favicon.ico

using yslow on a project I am experiencing a "problem" I can not solve. Yslow keeps complaining: There is 1 component with misconfigured ETags http://www.domain.com/favicon.ico I have the following in my .htaccess file # Add Proper MIME-Type for…
Lukas Oppermann
  • 2,918
  • 6
  • 47
  • 62
5
votes
2 answers

Fetch with 'If-None-Match': "etag" header always returning 200 in React Native app

I'm encountering a very strange issue in a react native app where a simple fetch with an etag is always returning a 200 rather than an expected 304: const response = await fetch(url, { method: 'GET', headers: { 'If-None-Match': etag …
waffl
  • 5,179
  • 10
  • 73
  • 123
5
votes
1 answer

ETag vs webpack's hash

we're reworking our whole assets building process to use 100% webpack. In the course of this I'd like to use its hash feature (e.g. [name].[chunkhash].js) to improve caching. But my backend colleagues say no need and we should use ETags instead for…
Kai
  • 51
  • 8
5
votes
1 answer

PHP REST API with ETAG support?

Is there a possibility to create a REST API in PHP that supports ETags? And if yes, how could you use parse the response in PHP to consider the ETags?
Sebastian Hoitz
  • 9,343
  • 13
  • 61
  • 77
5
votes
1 answer

Handling eTags on iPhone

Any idea how to handle eTags at client side? We are planning to use eTags with images in our application which are coming from the server. For what is eTag please see this: http://en.wikipedia.org/wiki/HTTP_ETag
Abhinav
  • 37,684
  • 43
  • 191
  • 309
5
votes
0 answers

Google Chrome not using local disk/memory cache for 304 html responses - behaviour changed?

Google Chrome browser is not using the disk (or in-memory) cache for html responses. Has chrome's behaviour changed? Javascript/css files seem ok, but not html. The same html response does get locally cached in Firefox and Edge. Example html/js…
jimasp
  • 962
  • 9
  • 26
5
votes
3 answers

Is there a way to get emacs tag-search command to output all results to a buffer?

Is there a way to get Emacs tags-search command to collect all search results in a buffer? Something like the way results from 'grep' and 'tags-apropos' are collected in a compilation buffer? Using M-, to iterate over the results isn't very…
5
votes
1 answer

Why responses to PUT requests MUST NOT provide an ETag?

From Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content: An origin server MUST NOT send a validator header field (Section 7.2), such as an ETag or Last-Modified field, in a successful response to PUT unless the request's representation…
sp00m
  • 47,968
  • 31
  • 142
  • 252
5
votes
1 answer

Remove Etag and Last-Modified headers from IIS

Did you know you can prevent the revalidation of files in browser cache and subsequent 304 response by completely removing both the ETag and Last-Modifed response headers? Of course, this is easy in Apache, but as clear as mud in IIS 6. Does anyone…
David Merrilees
  • 2,430
  • 2
  • 16
  • 15
5
votes
2 answers

ETags: Validation and Cache max-age

I have been using ETags for a good while now and I am pleased with how they can be used and what they allow to be done. However, I am sometimes experiencing ETag validation requests. On my server, I can see that my browser hits the resource…
Ingwie Phoenix
  • 2,703
  • 2
  • 24
  • 33
5
votes
1 answer

Browser cache expiration for js and css files with wildfly

I have a angularjs javascript app packaged in a webapp deployed to Wildfly 8.2.1. Sometimes, when I deploy javascript or css modifications to this webapp, users have to manually delete their browser cache for the modifications appear. Is there a way…
Tom F.
  • 53
  • 1
  • 5
5
votes
1 answer

What's an effective and processing-cheap algorithm for generating ETags?

I have a REST API (built in Nancy, running on ASP.NET) that can return a JSON object like this: { id: "1", name: "Fred", reviews: [ { id: "10", content: "I love Stack Overflow" } ] } Note how this object is not…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
5
votes
2 answers

ETags on IIS 7.0

Are Etags on by default in IIS? If no then please let me know how to turn them on??
vinayak
  • 64
  • 1
  • 1
  • 4
5
votes
1 answer

Google Cloud Endpoints not respecting etag cache headers

When I issue a GET request, I get back a 200 OK and the etag header: etag → "tZIZl_M15FKLVh9sN6Nj0iz1dQE/fA5Fya8Zz6DLGJwPNnIWbruyt30" In my subsequent request, I send the If-Not-Modified →…
iTwenty
  • 953
  • 8
  • 19