CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Cache Control

Here you can find some answers to your questions, and also some tutorials.

by Jorge Sousa » 27 Mar 2015 16:06

We strongly suggest cgdevtools users to add the following code to increase the expiration time of static content:

Code: Select all
uses
  IW.HTTP.Reply;
 
procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
begin
    THttpReply.DefaultCacheTTL := 1440;  // 1440 minutes = 24 hours
    THttpReply.DefaultCacheControl := 'private';
end;
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

Return to Documentation / Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.