473,395 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Setting up a browser cache policy

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.
Jun 27 '08 #1
2 1355
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.
Jun 27 '08 #2
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?
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" ...
12
by: glh-usenet | last post by:
I have inherited the responsibility of setting up a college lab for java classes. I know next to nothing about java and have a few questions; Our current configuration is; Windows 2000 / XP lab...
2
by: Ben | last post by:
Hi all, I have written a web server that listens for requests: class MyHandler(BaseHTTPRequestHandler): def do_GET(self): if (self.path)=='/': data=makeList() else:
2
by: Benny | last post by:
Dear All, I developed an web application which use MS SQL Server 2000. I encounter the following SQLException "Error setting up static cursor cache". Did anyone encounter this problem before?...
10
by: Simon Wallis | last post by:
I know the general purpose for the GAC is to share a component among many applications. But even when you add something to the GAC, you still have to manually create a reference to the DLL in your...
16
by: Marina | last post by:
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is...
2
by: junlia | last post by:
Hi All, I am working on a project that acts as a bridge. It does some checking with post xml data, and then redirects the request to an appropriate page. However, we find that depends on the...
8
by: Michael Howes | last post by:
I have some code that manages local user logins. When I create a new user I want to set the password to expire every x days and the number of failed login attempts before the account is...
105
by: sw | last post by:
Hi all, I have a news website tat is developed on joomla 1.5.Login facility is done thru a login component.On each page,ther s a 'Log In' link that redirects them to a login page.On successful...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.