[resolved] caching pages & debugger |
Site Admin
|
You're playing with browser cache and it's always a bit tricky.
When you pressed back and saw that the DB was not accessed, it means that the page was retrieved from the cache and your php script was not executed. It's not acceptable for the cases when you work with php debugger because otherwise you'll post there "why debugger does not work for me at all" So debugger sends "no-cache" instruction to the browser. I'd highly recommend you to stop using browser cache that way and if you care of the performance just switch to using http if-modified-since header (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). If your script got a request and realized that the data was not modified since it was sent last time upon the request with the same arguments, it will simply output HTTP/304 code. In this case browser will get the page from cache and it will be appropriate. To see a complete example, just check php.net site sources: http://www.php.net/source.php?url=/index.php in particular see the line with header("HTTP/1.1 304 Not Modified") |
||||||||||||
_________________ The PHP IDE team |
[resolved] caching pages & debugger |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by