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

Backbone.js and cache-control

I'm making a website based on my API is implemented on the server. API supports ETag, If-Modified-Since. The website is written using BackBone.js. When I use the methods of collection (fetch) to retrieve data from the server, backbone operates…
Anthony Tsivarev
  • 881
  • 3
  • 13
  • 25
2
votes
1 answer

Prevent unnecessary 'If-Modified-Since' requests and 304 responses on Amazon S3

I'm using AWS SDK for .NET to upload several images. Before making the PutObjectRequest, I set the max-age and expires headers for far future intervals and dates, respectively. This is the initial image…
Scott Coates
  • 2,462
  • 5
  • 31
  • 40
2
votes
2 answers

Combres doesn't put etag on content, why?

I have just used the Combres library in my project to minify the css and js files, and basically optimize the page a bit. Everythere I read about the Combres I see that it sends the etags together with the resources it optimizes, and yet when I…
domderen
  • 633
  • 9
  • 22
2
votes
4 answers

etag comparision code example

I'm trying to simulate a process like "cache validation" in my application. I will download a new version of my webapplication on the device (android-based), but I only want to download a new version of the files, based in a etag comparision. Does…
Litux
  • 121
  • 1
  • 9
2
votes
0 answers

Micronaut ETag headers getting stripped off with HTTPS

We have enabled https in our micronaut application. Controller file is as below package http.caching.controllers import io.micronaut.core.async.publisher.Publishers import io.micronaut.http.HttpHeaders import…
Shivani Bhansali
  • 109
  • 1
  • 12
2
votes
0 answers

Azure Table TableClient Response - ETag

Posted a few variations of a theme on this question but don't seem to have asked the right question and have also dug more into my problem. So... I am querying Azure Table Storage using the Azure.Data.Table TableClient with the…
haPartnerships
  • 335
  • 1
  • 2
  • 13
2
votes
2 answers

How to ignore ETag checking

My application reads blob content from Azure blob storage. The Blob content file is being changed by another program at the same time while it is being read. I get error in the Read() line. Which I believe is because of mismatch eTag values as file…
Sarahrb
  • 407
  • 11
  • 24
2
votes
1 answer

How to use ETag in Azure Table Store

This has been confusing me for awhile. According to Microsoft's documentation, the Azure Table Store uses the ETag to maintain optimistic concurrency. To my understanding, when I do this: var operation = TableOperation.Merge(item); CloudTable table…
Woody1193
  • 7,252
  • 5
  • 40
  • 90
2
votes
1 answer

Computing an ETag for a REST API

We're building REST APIs in which we use ETag for two uses: Save bandwidth by allowing the client to avoid reloading a resource (not that important to us) Address concurrency issues (lost update problem) From a practical perspective, I'm wondering…
Jérôme
  • 13,328
  • 7
  • 56
  • 106
2
votes
1 answer

Thoughts on dealing with expires headers, etags, and content updates?

I've implemented server independent eTags on my site and I'm now looking at adding expires headers to prevent most of the 304 requests. I'm concerned about using long expiration headers since it makes it tough to force a refresh if you need to…
user126715
  • 3,648
  • 3
  • 23
  • 25
2
votes
1 answer

Is there much advantage of using Etag in HTTP?

When I looked at Flask(werkzeug) source codes around etag, I found that it generates a response object, generates etag from the data by sha1, compares it with the if-none-match etag of the request, and returns 304 or 200. So the process of accessing…
2
votes
1 answer

ASP.net eTag cache thumbnail images on load/refresh

Hey all I have been working to get my 20+ thumbnails into a cache state so it doesn't always going the server to get the images each time the page is loaded/reloaded. I have implemented the "eTag" into my response call like so: var uriFetcher = new…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
2
votes
1 answer

REST API and ETag on individual resources of a list

Considering I have a REST API exposing a repository of users : /users/ -> returns an array of UserModel /users/{Id} -> returns a UserModel I needs to implement a client application that support offline mode (API not available) that will display…
Alexandre B
  • 361
  • 3
  • 6
2
votes
2 answers

CloudFront / S3 ETag: Possible for CloudFront to send updated S3 Object before the CF TTL has expired?

I have a question in regard to how CloudFront will use an S3 object's ETag to determine if it needs to send a refreshed object or not. I know that the ETag will be part of the Request to the CloudFront distribution, in my case I'm seeing the "weak"…
Jon D Cruz
  • 107
  • 1
  • 7
2
votes
1 answer

How to stop Next.js api from overriding my ETag header

I am new to Next.js, but it looks like Next.js is overriding my ETag header. I am editing ETag because I connect my server to S3 and want to use S3 Object's Etag for cache controlling. To reproduce it, in below code, it sets ETag header. But when I…
Yi Zhao
  • 21
  • 2