Attachment 'fix_tw.txt'
Download 1 diff -r 82ad863c255e MoinMoin/action/cache.py
2 --- a/MoinMoin/action/cache.py Sat Feb 23 18:28:30 2013 +0100
3 +++ b/MoinMoin/action/cache.py Thu Feb 28 14:41:12 2013 +0100
4 @@ -27,6 +27,8 @@
5 @license: GNU GPL, see COPYING for details.
6 """
7
8 +from datetime import datetime
9 +
10 from MoinMoin import log
11 logging = log.getLogger(__name__)
12
13 @@ -202,7 +204,7 @@
14 """ get last_modified and headers cached for key """
15 meta_cache = caching.CacheEntry(request, cache_arena, key+'.meta', cache_scope, do_locking=do_locking, use_pickle=True)
16 meta = meta_cache.content()
17 - return meta['httpdate_last_modified'], meta['headers']
18 + return meta['last_modified'], meta['headers']
19
20
21 def _get_datafile(request, key):
22 @@ -216,7 +218,7 @@
23 """ send a complete http response with headers/data cached for key """
24 try:
25 last_modified, headers = _get_headers(request, key)
26 - if request.if_modified_since == last_modified:
27 + if datetime.utcfromtimestamp(int(last_modified)) == request.if_modified_since:
28 request.status_code = 304
29 else:
30 for k, v in headers:
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.