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

fresh_when in ruby not working with xml rendering

While trying to implement support for conditional GETting in a rest system, we have come across the fresh_when and stale? methods. The following code works fine with 304 and not further rendering: if stale?(:etag => resource, :last_modified =>…
0
votes
1 answer

What should a HTTP server do when clients use weak etags for subrange GET requests?

RFC 2616 Section 13.3.3: Clients MAY issue simple (non-subrange) GET requests with either weak validators or strong validators. Clients MUST NOT use weak validators in other forms of request. Assuming all clients are RFC conforming, we will…
Pacerier
  • 86,231
  • 106
  • 366
  • 634
0
votes
1 answer

Are parameterized version queries for css/js superfluous when etags are sent by the server?

Are parameterized version queries, such as style.css?v=1234, for css/js superfluous when etags are sent by the server?
user555
  • 1,564
  • 2
  • 15
  • 29
0
votes
1 answer

Etags in Controller

Every rails etag example I've seen has been very simple with the fresh_when method being called as the last line in the controller. I'm trying to understand how the fresh_when method works for a controller that has resource intensive method calls…
John
  • 4,362
  • 5
  • 32
  • 50
0
votes
1 answer

How to remove ETAG header on play framework 2.1.1? (i'll use akamai)

I'll set akamai in front of my server, so i need to remove ETAG header from my responses. Please, anyone could tell me the easy way to do it? Thanks.
Eusthace
  • 3,601
  • 7
  • 34
  • 41
0
votes
0 answers

What should be the logic behind parsing a file containing (HTTP and data) and (ETag and data) and (HTTP,ETag and data)

I am trying to parse a file containing multiple header and data so that header part HTTP/1.1 302 Found Cache-Control: no-store, no-cache, private Pragma: no-cache Expires: Sat, 15 Nov 2008 16:00:00 GMT P3P:…
Rajeev Das
  • 1,581
  • 4
  • 18
  • 21
0
votes
0 answers

Leverage Browser Caching, Header Expires and Etags don't works

I know there are already a lot of posts that talk about my problem. But, I tried several modifications to leverage browser caching, header expires and Etags (on PageSpeed and Yslow) but it doesn't work. I made every modification I've found on the…
akioz
  • 53
  • 5
0
votes
1 answer

htacces redirect if e-tag or last-modified in request header

I've tried searching around for an answer but can't find any tutorials or docs I can make sense of so I'm not even sure if it's possible, but; I would like to redirect/rewrite a URL if the last modified date or etag is in the request header.…
Jonathon Oates
  • 2,912
  • 3
  • 37
  • 60
0
votes
0 answers

Javascript is not getting executed when DOM/HTML is loaded browser cache

I am caching the dynamic content using the ETAG. There is javascript in tag which in turn located at the end of body tag. This script tag make changes in DOM elements. But when DOM/HTML is loaded from browser cache, javascript is not getting…
MANISH ZOPE
  • 1,181
  • 1
  • 11
  • 28
0
votes
1 answer

Cacheing e-tags viewing

I am new to XML and caching and one of the comments is: All catalogue methods will now return an ETag header, like this: ETag: “686897696a7c876b7e” - should I be able to view this in the JSON Feed?
Jess McKenzie
  • 8,345
  • 27
  • 100
  • 170
0
votes
2 answers

Generate valid ETAG file stream and compare with header

I have this etag header from the web server, ETag | 1347613725000 This is a png image, but I have no idea on how to check if the file is expired. Right now I'm hashing the stream with this code: MD5CryptoServiceProvider md5 = new…
0
votes
1 answer

adding md5-string to image-URLs worth it?

I'm dynamically generating a page by PHP. I am using the site's output string to generate a Etag and check that to send a 304 (not modified) when the site hasn't changed since the last request. I am now trying to improve the caching of the pictures…
basbebe
  • 567
  • 1
  • 9
  • 25
0
votes
1 answer

jQuery, browser cache, refreshing an image with attr('src', newimage)

I am refreshing images via attr('src', newimage), where newimage may point to one of several images and may already be cached by the browser. Unfortunately the browser cache is being completely ignored when requesting through this method. All images…
0
votes
1 answer

Can IF-Match be used to conditionally update a property, not ETAG?

In Azure Table, can I use the IF-Match tag when Merging to conditionally update a value on something other than ETAG? Specifically, suppose I have an object like this public class Person : TableServiceEntity { public string Name {get;set;} public…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
0
votes
1 answer

Rails Conditional Get not behaving properly on Heroku

I have a Rails 3.2 application, where the client side polls a resource in the server for updates. This resource is not an asset, but dynamic content. The implementation strategy i chose is a Conditional Get via the fresh_when…
1 2 3
41
42