etag

Can eTag be used for smart client caching in asp.net MVC as in Rails?

I've found in this screencast ¹ that you can do, in Ruby in Rails, a better client caching ² considering REST + model for filling eTag. Way more smart than render all the http body and only after all this, calculate the eTag, as usual. This property can make the client caching more model-oriented when using GET, so I think this is great...

Clojure Emacs etags

I want to index clojure files, using etags so that i can use Emacs's tag functionality. But etags does not recognize clojure functions. is it possible to extend etags to include clojure definitions? ...

What is the purpose of (Apache) putting inode into an ETag?

There are plenty of articles on the web detailing why you might not want to use Apache's default inode-mtime-size format for ETags. But I have yet to read anything on what might have motivated the inclusion of inode for Apache in the first place. On the face of it, it only seems useful if one needs to be able to differentiate between oc...

Disk caching http Library for Java: Does it exist?

Apache HttpClient does not have caching as far as I can see so my question is do you know about a Http library that can cache to disk? It would be fun to implement it myself but before i do it, it is better to check if it already exists :-) Requirements: Support for Http 1.1 Can cache to disk (ex: a folder) Support for a maximum cache s...

Should HTTP 304 Not Modified-responses contain cache-control headers ?

Hi. I've tried to understand this, and searched SO for similar questions, but I still don't have a 100% understanding on how this is supposed to work. I get this response on a request for an image resource: Response Headers Server Apache-Coyote/1.1 Date Mon, 19 Oct 2009 09:04:04 GMT Expires Mon, 19 Oct 2009 09:06:05 G...

emacs, etags and using emacs as an IDE

Hello, My usual tools are Emacs with g++ on a Linux system to implement my research algorithms. For the last some years, I have used emacs in a fairly basic way. I open C or C++ files, edit them with a syntax highlighting scheme of my choice and compile and do other stuff from within emacs (or maybe from a terminal), including using gdb...

HTTP: max length of etag

Does the HTTP protocol specify a max length for the ETag? ...

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 => resource.updated_at.utc) respond_to do |format| format.html # show.html.erb ...

Advantages of ETags verses updating URL

ETags allow browsers to perform conditional GETs. Only if the resource in question has been altered will the resource have to be re-downloaded. However, the browser still has to wait for the server to respond to its request. An alternative to ETags is to introduce a token into the URL pointing to the resource: http://example.com/css/st...

Should HTTP ETags be case sensitive?

I'm creating a library for handling client caching over HTTP on a web server (i.e., handling of If-Match, If-Modified-Since, If-None-Match, and If-Unmodified-Since HTTP headers), and I'm working on ETags (entity tags) at the moment. My question is should ETags be case sensitive, or case insensitive? I've been looking over RFC 2616 (http:...

ETags, IIS7, Kernel Cache Policy (enableKernelCache)

Two-part question (parts are closely related): with the default OOTB ETag policy that IIS7 employs, why don't we see the If-None-Match/304 interaction as we navigate through pages? The headers returned for an empty-cache request, for instance, are: Content-Type image/png Last-Modified Thu, 03 Dec 2009 15:51:56 GMT Accept-Ranges ...

Emacs Etags Returning to Starting Buffer/Position

I am in buffer A and use M-. on some function name which jumps me to buffer B. From that function, I use M-. again which jumps me to buffer C. Now I have seen what I want and want to go back to buffer A. I don't know of a command to do this without opening the buffer list and finding the buffer I was in or remembering the buffer's name a...

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

Hello, 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 that line #2 is described like this: {src_file},{size_of_tag_definition_data_in...

Removing _dc parameter in Ext

Using Ext, default Ext.Ajax add to GET-request '_dc' parameter. For example 'GET /ConnViewProcessing/?_dc=1263286227619'. How to remove this parameter? PS: it's necessary to manually cache response to ETag and If-None-Match. ...

bad ETag value in test and production environment

i'm using the new caching solution for Rails as described here. the development environment works fine, but the test and production sends invalid ETag header ignores the parameter of the stale? function. heres is the corresponding part of one of my controllers: def index @categories = Category.all if stale?(:etag => @categories) ...

Ruby on Rails, how to disable/turn off ETag

Greetings, How do I turn off ETag(s) in Ruby on Rails v2.3.5 When I do a direct request to to the RoR/Mongrel an ETag header is present. TIA, -daniel ...

YSlow giving inconsistent results on ETags

When I run YSlow against my site, I get an "F" on the "Configure ETags" item; it claims that there are no etags for many (all?) of my images, stylesheets, etc. However, if I run the test on one of those images directly, I get an A on the etag test. Furthermore, on the Firebug Net panel's Response headers I can see the etag on this item ...

What is the point of If-Unmodified-Since/If-Modified-Since? Aren't they superseded by ETags?

There seem to be two distinct ways to implement conditional requests using HTTP headers, both of which can be used for caching, range requests, concurrency control etc...: If-Unmodified-Since and If-Modified-Since, where the client sends a timestamp of the resource. If-Modified and If-None-Modified, where the client sends an ETag repre...

is this true? "Gzipped items will not have the same etags (even if the content did not change)"

Is it true that we should disable etags if we are compressing with apache because the etags will be different each time? Is it true for deflate too? Thanks ...

Getting ETags right

I've been reading this book (highly recommended): And I have a particular question about the ETag chapter. The author says that ETags might harm performance and that you must tune them finely or disable them completely. I understand the risks, but is it that hard to get ETags right? I've just made an application that sends an ETag ...