[OWASP_PHPSEC] FileLastModified ?
rahul300chaudhary400 at gmail.com
Tue Jun 25 00:18:26 UTC 2013
After reading lots of materials, I now understand the whole concept of
cache control in PHP. I also was able to understand your code and other
codes in the web to check if the page has been modified or not.
1) What I don't understand is where the server variables such as
HTTP_IF_MODIFIED_SINCE and HTTP_IF_NONE_MATCH are set. How do they work.
There is no proper documentation that I could find.
2) Also in the code, why equality is checked. Shouldn't you check if some
time is greater than the other, then send the new page, otherwise the
cached page will be used.
if ($if_modified_since == $gmdate_mod)
if ($SendHeader) header("HTTP/1.0 304 Not Modified");
*I think we should IM. I am very unclear on these two matters.*
Ph - 412-519-9634
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OWASP_PHP_Security_Project