Show More
@@ -208,7 +208,7 b' def get_contact(config):' | |||||
208 | encoding.environ.get("EMAIL") or "") |
|
208 | encoding.environ.get("EMAIL") or "") | |
209 |
|
209 | |||
210 | def caching(web, req): |
|
210 | def caching(web, req): | |
211 |
tag = 'W/"% |
|
211 | tag = r'W/"%d"' % web.mtime | |
212 | if req.env.get('HTTP_IF_NONE_MATCH') == tag: |
|
212 | if req.env.get('HTTP_IF_NONE_MATCH') == tag: | |
213 | raise ErrorResponse(HTTP_NOT_MODIFIED) |
|
213 | raise ErrorResponse(HTTP_NOT_MODIFIED) | |
214 | req.headers.append(('ETag', tag)) |
|
214 | req.headers.append(('ETag', tag)) |
General Comments 0
You need to be logged in to leave comments.
Login now