Output a "Cache-Control:" header in the CGI script.

* wrap/python/ajax/spot.in: Output a cache-control header, so that
browsers do no even send two identical requests.
This commit is contained in:
Alexandre Duret-Lutz 2011-06-08 11:43:01 +02:00
parent b8f8441167
commit 0d2ac81a8c
2 changed files with 8 additions and 0 deletions

View file

@ -25,6 +25,7 @@ import os
script = os.environ.has_key('SCRIPT_NAME')
if script:
print "Cache-Control: max-age=3600"
print "Content-Type: text/html"
print