![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi We are heavily using .xsl for client-side transformation and these files are always downloaded with every request to a page. Is it possible to some how cache these files on the client side like any other files (for e.g. .js, .img files) so that it dosent gets downloaded everytime. |
#3
| |||
| |||
|
|
Rahul Agarwal wrote: Hi We are heavily using .xsl for client-side transformation and these files are always downloaded with every request to a page. Is it possible to some how cache these files on the client side like any other files (for e.g. .js, .img files) so that it dosent gets downloaded everytime. Sure. Simply mark the files as cacheable in your web server using appropriate HTTP caching headers, e.g. Cache-Control: public, max-age=86400 (any cache may store the XSL and consider it fresh for 86400 seconds, i.e. one day) Note that in IIS you can only set headers per directory, in which case you'll need to put all your XSL files in a common directory and set the desired HTTP headers for this directory. Cheers, -- http://www.joergjooss.de mailto:news-reply (AT) joergjooss (DOT) de |
#4
| |||
| |||
|
|
Hi Joerg Thanks for the reply. However I am still unable to cache the .xsl files even after adding the header you suggested. I think the problem is IIS is sending a header "Pragma: no-cache", do you know how I can remove this header. I can't seem to find this header being explicitly added on the .xsl files/directory. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |