Set last-modified header on messages
authorMagnus Hagander <magnus@hagander.net>
Wed, 10 Jul 2013 11:49:39 +0000 (13:49 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 10 Jul 2013 12:00:36 +0000 (14:00 +0200)
commitbaf928cd2fee83a782dd4885818c439982ba9d9e
treedf541755394f62b32f52a8069dbf37d430926405
parent62f2add7586c592162c6f670f401766adeaf2939
Set last-modified header on messages

This should at least hint Google and others about how often our pages
really do change. Only set it for messages for now, since other pages
are excluded from cache anyway.

Last modified is set to the lasat modified entr in the database, we don't
make any provisions for changes in the templates or the rendering itself.
We might want to consider this in the future, maybe looking at the datestamp
of the template file and the view.py, or something along that line.

Implement simple If-Modified-Since checks, even though that's not going
to work anyway with the current version of Varnish - but hopefully it
will with the next one.
django/archives/mailarchives/views.py