[Klone-users] WEB file without cache

thomas fossati tho at koanlogic.com
Mon Oct 20 05:15:45 EDT 2008


Hi Mickael,

On Oct 20, 2008, at 10:52 AM, Mickael Auger wrote:
> Hi Stefano,
>
> Ok.
> However I make every tests and I would like disable caching for all  
> static pages.
> I added "response_disable_caching" into the  
> "supemb_static_set_header_fields" function but no change.
> I added the same called function into the "fs_serve" function but no  
> change too.
>
> Do you know what is the function that I need to edit, please?

response_disable_caching() is meant to be used in a kl1 page.  Perhaps  
you need to wrap the retrieval of non-cacheable static pages into a  
kl1 interface, something like:

http://my:8888/get_static_page_with_cacheing_disabled.kl1?page_name=blabla

which opens the embedded page (emb_open("blabla", &page_io)), reads  
raw contents ( io_read(page_io, buf, sizeof buf)) and push it out  
(io_write(out, buf, buf_sz)) after performing  
response_disable_caching().

ciao, t.




More information about the klone-users mailing list