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

Automatically jump to tag in Emacs

I'd like to have find-tag automatically accept the default option (i.e. the word at point) and jump to the tag postion without prompting. Is this possible? I'm also using the advised version of find-tag from Emacswiki, that in case of match re-runs…
user673592
  • 2,090
  • 1
  • 22
  • 37
3
votes
2 answers

Programatically removing etag suffix (change number) from the metabase IIS6

IIS 6.0 generates eTag values in the format of "hash:changenumber". The changenumber goes up every time IIS resets, so your eTag is only valid for the lifetime of your IIS process. Restart, number goes up, hash:changenumber !=…
crb
  • 8,132
  • 6
  • 37
  • 48
3
votes
0 answers

Under what circumstances could Expires, Last-Modified and ETags headers be ignored?

I have a web site that is recieving many unexpected requests for static resources (images, css files etc) that I would expect to be being served straight from the browser's cache. This is a performance problem and I can't understand why it is…
Russell Mayor
  • 431
  • 5
  • 11
3
votes
1 answer

Generating etags for images in asp.net?

On my site, users can upload images that are displayed publicly. When the user uploads a new image, it overwrites one of their old images. Because the images can be large, I want them to be cached. However, when the user uploads a new image, the old…
Oliver
  • 11,297
  • 18
  • 71
  • 121
3
votes
0 answers

follow-redirects behaving differently in production. Receiving etag

So I have a Node Express backend and I’m using the npm package: follow-redirects. I follow a particular URL and due to data protected issues I cannot share it here. But the gist is that when I follow the link’s redirects I have a certain number of…
Edd Chang
  • 931
  • 1
  • 7
  • 16
3
votes
1 answer

What happens when you use Cache-Control: max-age with ETags?

There are several similar questions, but none of the ones I've found are clear or definitive. Here's the behavior I want: As long as the network is available, the browser must check if there's a new version If there isn't a new version, the browser…
Leo Jiang
  • 24,497
  • 49
  • 154
  • 284
3
votes
1 answer

Disable automatic etag header in Rails 3

Rails automatically adds etag to all responses. How can I change this behaviour? I found some examples for rails 2.x, but it doesn't work.
RaHimsiZ
  • 33
  • 4
3
votes
2 answers

Disable ETags in php?

Our webhoster moved the site to a newer server and now i have the problem that i have ETags everywhere. I tried FileETag None in the htaccess but that does not work. They told me on the phone that the ETags are not coming from Apache and that it is…
MrGlasspoole
  • 415
  • 2
  • 4
  • 15
3
votes
0 answers

Chrome refuses to cache large binary .data files

I've written a primitive HTTP server for testing my Emscripten apps. It serves static files from the current directory. The specifics is that I have large binary files (.data and .wasm), some of them rarely change. So it makes sense to have browser…
Vadim Kantorov
  • 930
  • 1
  • 10
  • 28
3
votes
0 answers

In ASP.NET Core, can the application generate a new request to itself without doing IO?

I'm implementing a custom ASP.NET Core middleware to handle the ETag/If-Match pattern to prevent lost updates. My HTTP GET operations will return an ETag value in the header and every PUT operation will be required to include that ETag in the…
Brett Janer
  • 517
  • 1
  • 4
  • 20
3
votes
1 answer

Caching in HTTP requests: ETag vs max-age

I have a SPA which consumes some static assets from the backend server. For reasons, I picked ETag validation as the caching mechanism. In short, I want the browser keep the assets in its cache forever, as long as the related ETags remain…
Hans
  • 2,674
  • 4
  • 25
  • 48
3
votes
1 answer

Firefox & IE: Corrupted data when retrieved from cache

I have a request to the server which looks like this: http://localhost/Combine.aspx/flag/file1.js,file2.js,file3.js I have also tried this: http://localhost/Combine.aspx/flag/value/file1.js/file2.js/file3.js It simply combines the three files…
Snea
  • 1,867
  • 2
  • 14
  • 21
3
votes
1 answer

How do I return a valid ETag in a message's response?

I have developed an ASP.NET Core middleware solution that calculates the value of the ETag that matches the GET request I am performing and returns it in the response. The relevant code excerpt is below: RequestHeaders requestHeaders = new…
José Maia
  • 310
  • 5
  • 21
3
votes
1 answer

How to remove ETag in nginx from the response header?

I want to remove the ETag from my response header. I am using a nginx server. I have looked through various posts and blogs but could not find the correct way to remove it. All I could find regarding removing ETag was what's given in the official…
3
votes
1 answer

How do you find the part size used to create an existing multipart object on Amazon S3?

With a large number of parts in a file, it is easy to find the proper part size (since there is limited number of permutations of likely part sizes, and part sizes can often be assumed to fall on MiB or MB boundaries). However, for a given upload,…
Gery Vessere
  • 871
  • 5
  • 9