Re: netWindow - PHP data transfer model

Mark Anderson <[email protected]>
Newsgroups gmane.comp.windows.devel.netwindows
Message-ID <[email protected]>
>Yes I think I can set the session procedures to do that, have to figure out
>how.
>But you are saying that absolutely no cookies should be used if NW is to
>work correctly, is that correct?
>

Nothing to do with NW.
Rather, a Set-Cookie header in a http response will prevent the browser 
from caching it.

I'm somewhat jumping the gun be even bring up caching; you should 
probably get
your app working first.

>
>To what do I set it exactly? From a different script, I copied
>
>Header("Cache-Control: no-store, no-cache, must-revalidate");
>Header("Cache-Control: post-check=0, pre-check=0", false);
>Header("Pragma: no-cache");
>
>without, however, understanding what that does (I wanted to avoid the
>javascript to be cached, since this prevents from changes in the javascript
>to be updated in the browser cache). Is this totally wrong?
>

The above *prevents* caching. Maybe you want that. If you don't want 
caching, then it
doesn't matter whether you use cookies (or https, or POST, or anything 
else that busts caches).

My concern was if you *want* browser caching. In that case, you might want:
Header("Cache-Control: max-age=3600")
Header("Cache-Control: pre-check=3600, post-check=3600")

If you want data cached in the browser for one hour.

Oh and you'll want Header("Content-Type: text/plain") if you are sending 
text.

-mda



_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.