Forum Discussion

trx's avatar
May 17, 2011

cache-control header response

Hello ,

Is there a way to set to intercept the http header response and set cache-control (i.e. set control-control: private and max-age of 7 days)

 

for ONLY static files specified?

 

 

 

Thanks!

 

 

 

Regards,

 

Traolly Xiong

 

12 Replies

  • Sorry Aaron. It was syntax error.

     

     

    This worked:

     

     

    if { [matchclass [string tolower $uri] equals static_files_TRX] } {

     

    HTTP::header replace "Cache-Control" "private, max-age=99999999999999999"

     

    }

     

     

     

    Thanks for you help.

     

     

    Much Regards,

     

    TRX