Solved

Possible to require browser to retrieve fresh copy of page?

Posted on 2011-02-14
6
233 Views
Last Modified: 2012-05-11
I'm building my first truly complex ASP.NET / VB.NET / JavaScript / jQuery web form.  And, to be candid, I've had to work out a few bugs after going into production.  Fortunately, the form lives on an IIS server with a private IP, so it isn't too hard to fire off an email to my users saying, "I've updated the web form.  Please load the page and press F5."  Here's the kicker, many of them forget to press F5. Subsequently, my phone has been ringing a lot.  Is there a way to configure the web form that tells my user's browsers (mostly IE 8 and Firefox 3.5 and 3.6) to grab fresh copies of the HTML, CSS, and JS files every single time the page loads?  If there is, I'd turn this feature on for a period of a week or so, then turn it off after I work out the bugs.
0
Comment
Question by:jdana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 167 total points
ID: 34887478
In IIS, you can change how pages are cached by the client. In the properties for your website, go to the HTTP Headers tab and enable content expiration. The proper setting would be "Expire immediately".
0
 
LVL 7

Assisted Solution

by:mkobrin
mkobrin earned 167 total points
ID: 34887499
You can also prevent caching by adding the following in the heading:

<meta http-equiv="pragma" content="no-cache" />

but that will reload this page every time.

Will still require a refresh from the clients side once after the change is uploaded.

When you are fined testing you can remove the line and the next time the user load the page it will cache again
0
 
LVL 15

Assisted Solution

by:mattisflones
mattisflones earned 166 total points
ID: 34887507
IIS, Site, HTTP Headers, "Enable content expiration"->"Expire immediately".
That combined with a timer that triggers a update should do the trick..


But, my real answer is: Dont dev that way! Its bad!


0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:jdana
ID: 34897176
mattisflones,

You stated, "But, my real answer is: Dont dev that way! Its bad!"  Okay, sounds reasonable, what would you suggest as an alternative?

J
0
 
LVL 15

Expert Comment

by:mattisflones
ID: 34898981
Easy.. Dev, test, fix, test (Loop until satisfied).

Then publish.
0
 

Author Closing Comment

by:jdana
ID: 35045986
Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Debugging Html 8 31
Popup write two lines 3 22
Ajax on ASP 2 35
Javascript: Mouseup doesn't follow mousedown 13 23
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question