Etag missing when 304 Not Modified

90 views
Skip to first unread message

Qview

unread,
Feb 9, 2012, 6:22:56 PM2/9/12
to Tornado Web Server
I've recently taken the plunge to learn python and thought I'll have a
go at developing a website (http://qview.org.uk since you asked).
After some searching online I decided to try out TornadoWeb and I've
been very impressed. I would like to pass on my personal thanks to Ben
and other contributors for all the effort.

During testing I've been using Redbot (another great resource that I'd
recommend to developers) to test the 'cacheability' of the site.

Now I don't know if REDbot is right or wrong but when I test the
following URL http://redbot.org/?uri=http://qview.org.uk/image/43512
it throws up a validation warning that the If-None-Match response is
missing an Etag header.

REDbot suggests that if Etag is present for a 200 response then it
should also be sent for a 304 response. Is this a problem with
TornadoWeb??

Thanks
Nick

Lorenzo Bolla

unread,
Feb 10, 2012, 4:47:12 AM2/10/12
to python-...@googlegroups.com
Hi,

On Thu, Feb 9, 2012 at 11:22 PM, Qview <qview...@gmail.com> wrote:
http://redbot.org/?uri=http://qview.org.uk/image/43512

actually, Etag is included in the response (probably Redbot is confused by "etag" -- lowercase?).
Anyway, browser caching seems to work on that page: just open that address in chrome, open up the developer console (network tab), reload the page and see the 304 response. wait 30 seconds. reload and get a 200. You could probably get away completely with the call to your server (and let the browser use its own cached image), by removing the "must-revalidate" directive in Cache-Control.

L.
Reply all
Reply to author
Forward
0 new messages