Re: [phplib] Caching of sites From: Don Undeen (dundee <email protected>)
Date: 11/02/00

hi Steffen,
    I'm not answering your question, but posting a "yeah, what's up with that?"
On a related note, IE and Netscape handle caching differently, so you have to be careful.
Sometimes I WANT the page to not be cached. For example, if a page draws from the database, and the database entry changes, IE won't display the change in the page without
explicitly setting a "Pragma: no-cache" header or META tag on that page. This was very irritating until I tracked teh problem down. But in other cases, I WANT the cached
version of the page to be displayed (like with search results, as Steffen wrote).
Basically, the behviour I want is for when I go to a php page, I want the php script to run, and the results to be displayed. If I'm clicking "back" I want the my last submit
to be submitted again.
While I realize in general this could be a security problem, it's not for this site. I've been developing a workaround for this, but if anyone has insight into setting this up
in a general way, I'd welcome the info.
Don Undeen
dundee <email protected>

Steffen Petter wrote:

> Hi,
>
> in one of my scripts I select some data from a database with the Sql_Query widget class.
> I go in a detailed desciption clicking an item!
> When I click on the back Button in the Browser an HTTP Warning/Error appears:
>
> <error>
> Data Missing
>
> This document resulted from a POST operation and has expired from the cache. If you wish you can repost the form data to recreate the document by pressing the reload button.
> <error>
>
> But I want to go back to my previous list of search results!
> The allow_cache variable in my Session class is set to private.
>
> How can I fix it?
> (PHP 4.0.3pl1, PHPLIB 7.2b, Browser: Netscape)
>
> Regards,
> Steffen

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>