Commit 0d2ac81a authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

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.
parent b8f84411
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment