Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Setting up a browser cache policy

Reply
Thread Tools

Setting up a browser cache policy

 
 
helveticus
Guest
Posts: n/a
 
      05-06-2008
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.
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      05-06-2008
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" wrote:

> 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.
>

 
Reply With Quote
 
 
 
 
helveticus
Guest
Posts: n/a
 
      05-06-2008
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?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Policy map using policy map Geoffrey Sinclair Cisco 1 07-27-2009 09:31 AM
Forcing a browser to re-render an image from its URL location andnot from the browser's cache Edward Diener Javascript 11 10-26-2007 08:18 PM
Default Domain Policy vs Default Domain Controller Policy Tyler Cobb MCSE 6 10-19-2005 09:36 PM
Default Domain Policy vs. Default Domain Controller Policy Tyler Cobb MCSA 1 10-09-2005 03:42 PM
why browser cache setting affects program behavior? Fix? =?Utf-8?B?anVubGlh?= ASP .Net 2 05-20-2005 06:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57