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
|
|
@ -1,3 +1,10 @@
|
|||
2011-06-08 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||
|
||||
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.
|
||||
|
||||
2011-06-08 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||
|
||||
Cache results of the spot.py CGI script.
|
||||
|
|
|
|||
|
|
@ -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