Re: netWindow - PHP data transfer model
Mark Anderson <[email protected]>
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <[email protected]> |
>Does this basically rule out PHP Session management? (Which sets the cookie >"phpsessionid"). I do not know if I fully understand you. Is the cache >destroyed even if a Sub-Window (i.e. a window created by NetWindows) is >loaded with data? Users aren't supposed to press the refresh button, if they >do, it is not the fault of the application if the data is lost, no? The >"Last-Modified, Expires, or Cache-Control"- header-stuff is greek to me, if >it is important, I would be happy about a reference on that (maybe >off-line). > A basic resource page is at http://vancouver-webpages.com/CacheNow/ The actual HTTP RFCs are useful too. You will need to not have a Set-Cookie in http responses that you want cached. For that reason, you'll need all relevant parameters (such as user id) to be in the request url. It should be possible to control use of http headers on a per request basis in PHP (it is designed for building web apps, right?). The simplest approach for you would be to just set Expires (or equivalently, Cache-Control: max-age). If-Modified-Since is suitable for information with unpredictable aging. Note that there are also IE-specific Cache-Control headers called pre-check and post-check, which are not well documented: http://msdn.microsoft.com/workshop/author/perf/perftips.asp For a data-url, you should set pre-check and post-check to the same value and equal to max-age. Despite all of that, IE out of the box still starts with cache settings which basically say "I'll check content whenever i feel like it". -mda _______________________________________________ The netWindows developers list: [email protected] http://netwindows.org/mailman/listinfo/devel_netwindows.org