Show More
@@ -187,7 +187,7 b' def get_contact(config):' | |||||
187 | os.environ.get("EMAIL") or "") |
|
187 | os.environ.get("EMAIL") or "") | |
188 |
|
188 | |||
189 | def caching(web, req): |
|
189 | def caching(web, req): | |
190 |
tag = |
|
190 | tag = 'W/"%s"' % web.mtime | |
191 | if req.env.get('HTTP_IF_NONE_MATCH') == tag: |
|
191 | if req.env.get('HTTP_IF_NONE_MATCH') == tag: | |
192 | raise ErrorResponse(HTTP_NOT_MODIFIED) |
|
192 | raise ErrorResponse(HTTP_NOT_MODIFIED) | |
193 | req.headers.append(('ETag', tag)) |
|
193 | req.headers.append(('ETag', tag)) |
General Comments 0
You need to be logged in to leave comments.
Login now