[Gambas-user] No Cache Control with gb.web?

Benoit Minisini benoit.minisini at gambas-basic.org
Wed Mar 8 16:59:28 CET 2023


Le 08/03/2023 à 16:54, Claus Dietrich a écrit :
> Hi
> 
> I couldn't find any property in gb.web to control the cache of the 
> browser. It seems that the
> 
> cache is always switched off, which is visible in the we-app from Hans 
> which I provided recently
> 
> for testing. Is there a way or workaround to get the cache controlled or 
> would it be a good idea
> 
> to add an according property in the response class?
> 
> Best regards
> 
> Claus
> 

Page that are dynamically generated are usually never cached.

Otherwise, you can add your own HTTP headers with the 
Response.AddHeader() method to control the HTTP cache behaviour.

Good luck, it is not simple, as the different browsers seem not to react 
exactly the same way to the HTTP cache headers.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list