304 not modified on cgi-scripts
Added by fredfist over 12 years ago
Hi,
I set up my lighty to handle cgi-files by using cgi.assign = ( ".sh" => "" ) in the lighttpd.conf-file. Now I tested my scripts in IE9 for the first time.
I noticed, that im not really able to contol the caching-behavior of this browser by the usual HTML-tags. My scripts aren't executed on
the server, but loaded from the browser-cache.
Debugging that problem showed, that lighty returns a "304 not modified" by invoking one of my scripts.
Is is the right behavior for a webserver, when handling dynamic content or a bug. What can I do to (hot)-fix the problem.
Thanks and greetings,
Falk
Replies (1)
RE: 304 not modified on cgi-scripts - Added by darix over 12 years ago
test your scripts with curl. if curl shows your the code instead of output from the script, your config is wrong.
checkout:
debug.log-request-handling = "enable" and check error.log, also see http://redmine.lighttpd.net/projects/lighttpd/wiki/DebugVariables