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:
parent
b8f8441167
commit
0d2ac81a8c
2 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue