Re: [twsocket] Httpserv: Configure Web Page to Expire immediately

2005-12-15 Thread Francois Piette
> I looked and could only find it (no-cache)in the CreateVirtualDocument
> procedures. There is no "no_cache" in WebServ1.pas and I assume you
> refer to "no-cache".

Seems you have an outdated ICS. Download again from my website, preferably the 
last ICS-beta which
is the version I really use in my own applications.

Extracted from WebServ1.pas:

const
  WebServVersion = 109;
  CopyRight : String = 'WebServ (c) 1999-2005 F. Piette V1.09 ';
  NO_CACHE   = 'Pragma: no-cache' + #13#10 + 'Expires: -1' + #13#10;


procedure TWebServForm.CreateVirtualDocument_Template(
Sender: TObject;
ClientCnx : TMyHttpConnection;
var Flags : THttpGetFlag);
begin
ClientCnx.AnswerPage(
Flags,
'',
NO_CACHE,
'TemplateDemo.html',
nil,
['TIME',DateTimeToStr(Now),
 'PROGVER', WebServVersion,
 'SOURCE',  TextToHtmlText(HttpServer1.TemplateDir +
   'TemplateDemo.html')]);
end;

--
Contribute to the SSL Effort. Visit
http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Httpserv: Configure Web Page to Expire immediately

2005-12-15 Thread Juri Keyter
I looked and could only find it (no-cache)in the CreateVirtualDocument
procedures. There is no "no_cache" in WebServ1.pas and I assume you
refer to "no-cache". I understand it for the dynamic pages but I still
cannot how to do it for all other non-dynamic pages it delivers.

Thanx for you fast response. 

Juri Keyter 

 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Francois PIETTE
Sent: 14 December 2005 21:10
To: ICS support mailing
Subject: Re: [twsocket] Httpserv: Configure Web Page to Expire
immediately


>I would like the make changes to the WebServ demo so that all pages it

>returns will include the
> 'Pragma: no-cache' + #13#10 +
> 'Expires: -1'  + #13#10,
> in the header. I do not want the browsers to cache it. I want this to 
>be  the default behavior.
>
> Can someone please let me know how to do this?

Just have a better look at WebServ1.pas. Search for NO_CACHE and you'll
find 
what you need :-)

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list please
goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Httpserv: Configure Web Page to Expire immediately

2005-12-14 Thread Francois PIETTE
>I would like the make changes to the WebServ demo so that all pages it
> returns will include the
> 'Pragma: no-cache' + #13#10 +
> 'Expires: -1'  + #13#10,
> in the header. I do not want the browsers to cache it. I want this to be
> the default behavior.
>
> Can someone please let me know how to do this?

Just have a better look at WebServ1.pas. Search for NO_CACHE and you'll find 
what you need :-)

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be