django.views.decorators.http.condition decorator

21 views
Skip to first unread message

Anton Novosyolov

unread,
Oct 17, 2014, 6:20:35 AM10/17/14
to django...@googlegroups.com
I have a question about this part:

elif (not if_none_match and request.method == "GET" and res_last_modified and if_modified_since and res_last_modified <= if_modified_since): response = HttpResponseNotModified()

If I don't use etag, and request method is HEAD then 200 is returned.

Some sites for checking 304 status (e.g. http://last-modified.com/en/ ) use HEAD for checking.

Collin Anderson

unread,
Oct 17, 2014, 12:42:41 PM10/17/14
to django...@googlegroups.com
I'm not an http caching expert, but what you say seems right. Want to open a ticket?

Anton Novosyolov

unread,
Oct 20, 2014, 8:25:48 PM10/20/14
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages