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
7
votes
0 answers

S3 -> CloudFront -> Client with (Gzip + Etag)

Is there any way to distribute JS Lib from AWS CloudFront with ETag header (for caching control) and with Compression (only for clients that support it) using S3 as origin? As I understand I can: 1) Upload JS Lib (uncompressed) on S3, enable auto…
Alexey
  • 2,326
  • 5
  • 17
  • 27
7
votes
2 answers

How do I return 304 Unmodified status with Express.js?

I'm using node and express for the back end of an iOS application. Data is stored in a SQL Server database, so iOS apps query the server, the server queries the database, server receives the db response, and then forwards the response to the iOS…
cweber105
  • 535
  • 1
  • 4
  • 21
7
votes
1 answer

ETag with no Cache-Control header in http response

I am trying to learn some basics about HTTP. I've inspected a some HTTP response headers and noticed 2 things that confused me: There was no cache-control header and ETag header was present. The way I understood ETag is that, client sends ETag in…
sanjihan
  • 5,592
  • 11
  • 54
  • 119
7
votes
0 answers

Alamofire support HTTP ETAG mechanism

I cannot understand if Alamofire support HTTP ETAG. I find this discussion https://github.com/Alamofire/AlamofireImage/issues/5 and another thread on: NSURLCache and ETags Previously i use AFNETWORKING 1.x with Etag and i found this lines of…
Andrea Bozza
  • 1,374
  • 2
  • 12
  • 31
7
votes
2 answers

Why would ETags set to a MUST requirement if you already have the resource?

Why would you set ETags to a "MUST requirement level"? You obtains the resource before the ETags returned... I'm working on a project where I am the client that sends HTTP requests to a server that returns an HTTP Cache-Control header with ETags to…
garrettmac
  • 8,417
  • 3
  • 41
  • 60
7
votes
2 answers

Is it possible to auto-regenerate and load tags table in emacs rather than having to keep running visit-tags-table?

I am trying to find a way to auto-regenerate tags for my application and visit those tags in emacs to try to improve my workflow. Is it possible to get emacs to detect changes in TAG file and re-visit it ?
aakarsh
  • 320
  • 1
  • 7
7
votes
3 answers

Will this protect me from Etag tracking?

Background: ETag tracking is well explained here and also mentioned on Wikipedia. An answer I wrote in a response to "How can I prevent tracking by ETags?" has driven me to write this question. I have a browser-side solution which prevents ETag…
Hello World
  • 925
  • 7
  • 18
7
votes
2 answers

Understanding the `ctags -e` file format (ctags for emacs)

I am using "ExuberantCtags" also known as "ctags -e", also known as just "etags" and I am trying to understand the TAGS file format which is generated by the etags command, in particular I want to understand line #2 of the TAGS file. Wikipedia says…
metacontent
  • 1,326
  • 1
  • 13
  • 18
7
votes
1 answer

how does iis 7 generate etags

what method/algorithm does iis 7 use to generate etags. I'm looking for exact, not 'well they use checksum on the date' This leaves lots of questions. What algorithm for checksum, which date, which format of the date (short, utc, 'mm-dd-yyyy ttad',…
ttomsen
  • 848
  • 9
  • 15
7
votes
3 answers

How Do I Configure eTags?

Using ySlow, it recommends that I use eTags. I never heard of them before today. The question is now, how do I configure eTags? I just spent the last 2 hours trying to figure this out. I tried adding various recommended scripts to my .htaccess…
Xarcell
  • 2,011
  • 6
  • 33
  • 65
6
votes
2 answers

Using ETag for optimistic locking in a Django REST application

I'm trying to select a REST framework for Django that will allow me to easily use ETags for optimistic locking. I'm planning on examining Django-pistons and the Django Rest Framework libraries, but I'm open to any non-GPL solution (corporate…
Chris R
  • 17,546
  • 23
  • 105
  • 172
6
votes
3 answers

JS file caching is different when included via script tag vs GET

I've been stuck in caching hell for the past couple of days and while I'm starting to get it still struggling a little bit. Desired Result I want to include a JS file on a site and have it cached and/or only fetch a new copy of the file when the…
bos570
  • 1,505
  • 2
  • 23
  • 45
6
votes
1 answer

Etag: weak vs strong example

I have been reading about Etags, and I understand that there are 2 ways of generating an Etag, weak and strong. Weak Etags are computationally easier to generate than strong ones. I have also come to know that Weak Etags are practically enough for…
gaurav5430
  • 12,934
  • 6
  • 54
  • 111
6
votes
3 answers

Browser cache files not getting updated after a new deployment in jboss server for a web application

I am using jboss Server 7.1.1 for deploying a java web application. For js, css, font files the browser cache is not getting updated with new changes. Every time we insist the clients to clear cache in their browsers to get the new changes to…
siva
  • 516
  • 3
  • 7
  • 22
6
votes
1 answer

Spring MVC response Headers: ETag has double quotes for GET request but not for PUT request

We upgraded our Spring MVC from 4.0 to 4.3 in our service. It caused ETag format change in the response headers for "GET" method. Clients making "GET" calls will get ETags with double quotes in the response headers. Previously ETag in the response…
Tony
  • 61
  • 1
  • 5