list at joreybump.com
Wed Aug 25 17:28:24 EDT 2004
Tobiah wrote: > >> >> Within your application you can do this: >> >> req.headers_out['Pragma'] = 'no-cache' >> req.headers_out['Cache-Control'] = 'no-cache' >> req.headers_out['Expires'] = '-1' >> >> Or you can simply set the headers in httpd.conf or .htaccess: >> >> <Directory /var/www/foo/site> >> AddHandler python-program .py >> PythonHandler mod_python.publisher >> PythonDebug On >> # set headers to prevent caching for anything in this directory >> Header set Pragma "no-cache" >> Header set Cache-Control "no-cache" >> Header set Expires "-1" >> </Directory> >> > > My understanding of the entire request process is limited, > but don't those directives only tell the client (browser) > not to cache content? My goal is to get mod_python to reload > imported modules when their source file date is newer then > the last import time. Yes, this is only related to Graham's point about cached pages.