Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting up a browser cache policy

1 view
Skip to first unread message

helveticus

unread,
May 6, 2008, 8:18:12 AM5/6/08
to
How can I assign expiration dates for external js scripts? For
instance, I would like to update the expiration date of
a js script by one hour after the last fetch. Does this make sense? I
have seen some examples suggesting changing header pragmas, etc., but
nothing really specific about asp.net. I am aware about page
OutputCache declarations, but how can this be applied to external js
or css scripts? All external scripts are declared inside the header.
(I am using Ajax). TIA for any pointers.

bruce barker

unread,
May 6, 2008, 11:34:00 AM5/6/08
to
to set the cache headers for js files, they need to mapped to asp.net for
processing in iis (unless you are using ii 7.0). then with a httpmodule, your
code woudl check if the request is a js file, and set the cache header.

-- bruce (sqlwork.com)

helveticus

unread,
May 6, 2008, 2:15:21 PM5/6/08
to
Thanks for the reply. I kind of get the picture, but need to flesh out
the details. Do you know by chance some links to probe further?
0 new messages