OLD | NEW |
(Empty) | |
| 1 import time |
| 2 |
| 3 def main(request, response): |
| 4 # no-cache itself to ensure the user agent finds a new version for each upda
te. |
| 5 headers = [('Cache-Control', 'no-cache, must-revalidate'), |
| 6 ('Pragma', 'no-cache')] |
| 7 |
| 8 # Set a normal mimetype. |
| 9 content_type = 'application/javascript' |
| 10 |
| 11 headers.append(('Content-Type', content_type)) |
| 12 # Return a different script for each access. Use .time() and .clock() for |
| 13 # best time resolution across different platforms. |
| 14 return headers, '// %s %s' % (time.time(), time.clock()) |
| 15 |
OLD | NEW |