Hello,
- Chameleon - wrote:
is there a browser which can log what headers send or receive?
I don't know about this one.
I saw, when I use directly link:
<img src=image1.jpg>
browser never reloads image (caching) but when I use php link
<img src="index.php?image1.jpg">
browser always reload the image
Maybe the browser uses a conditional GET, so maybe
the request from browser to server contains an additional
HTTP header that tells the server to only return the content
of a file if it was modified after this and that datetime.
In case of non-static content, like a PHP script,
I can imagine that such headers are ignored
and the script is always executed, because it doesn't make
much sense for the server to check the modification datetime
of the PHP script. So perhaps you have to check this special
header yourself from the PHP script and, if the image file
didn't change, you return a different status to the browser.
Sorry for not giving you exact data, I don't know the names
of the headers and the status codes out of the top of my head,
but you can find them in the HTTP specification.
Best regards,
Eric