SaaS CMS has officially launched! Learn more now.

Caching while developing


I've just upgraded to Windows 7 and run IIS7 on a x64 laptop.
When I'm developing and gone test my implementation, I find that
usually nothing changes. I either have to empty Temporary Internet Files,
recycle the app pool or do a iisreset. It is really stating to get to me.
Small changes on the solution will not appear in the solution after a new build.
I think it is very frustrating.
I've looked into IIS output caching and made rules for not caching aspx or ascx files.
After doing this a lot of stuff happened to my solution that I had to fix.

What I want to ask is - is this normal? Do other developers turn off caching when working with IIS7??
In advance thanks a lot for your contribution.

Nov 27, 2010 23:42

Check your web.config / episerver.config siteSettings element. In development you should probably set the httpCacheExpiration to "0:0:0". You shouldn't have to disable cache in any other way.

Changes to static files like css might require a ctrl-f5 for your browser to get the new files.

Nov 29, 2010 8:17

I always use [ctrl] [F5]. I just experienced a strange behavior debugging when I attached Visual Studio to the w3wp process.
Before attaching the process I did a rebuild on my solution. Before that I had done a change on PageHeader.ascx. When Visual Studio was about to start debugging this page, VS said that the file was different from the compiled version of the file. I tried to both "build" and "rebuild" my solution, but the compiler still said that the file was different.
Very frustrating...

Nov 29, 2010 9:43

I just found that httpCacheExpiration already is 0:0:0. It seems to be the default value for this attribute.

Nov 29, 2010 9:47

I just did a change in the lang file. Entered a space in web.config so I could save it for invoking a restart on the application,
but nothing changed. I used ctrl + f5.

Nov 29, 2010 10:07

What happens when you run the site through Cassini in Visual Studio? (press F5 in VS)

And what URL are you using through IIS? (Make sure your urls are bound to  Does your company have a proxy server or something that could be caching your request?

Dec 08, 2010 17:34

I guess I might have found the answer in another thread.

The answer might be this:

Jon Haakon

Jan 28, 2011 11:12

I'm experiencing the same problem right now on two projects.  All cache expirations are set to 00:00:00, there are no proxy servers involved, my workstation is not setup as a "webgarden".


I have to build in visual studio to have any changes in an aspx or ascx show up regardless of if I'm debugging or not.

Mar 04, 2011 20:04

Did you see Steve's answer in the link above?

Running your computer as a "web garden" is not recommended.

Mar 08, 2011 8:15

Yes, I noticed. The problem is kind of history now, but I will be aware of web garden and check that the next time I experience the problem.

Today I installed/released a website with a new feature on the frontpage. After installing the website, I tested it and saw that everything worked okey on the server. I sent confirmation email to the customer to tell that the new feature was installed. My contact verified that it worked and informed eveyone that the website was updated.

Then the problem occured. All employees got http 500 error "The page cannot be displayed". This was a IE friendly error message. After turning of friendly error message and refreshing the page, the result was a blank page. I checked the log4net logfile and found that one of the webparts returned a object failure errormessage. To eliminate the problem, I turned of all webparts - then the end users could open the website. We added webparts step by step to see what webpart that was failing, but ended up with everyone working.
A half hour later, he called back to say that the page was down again.
Since I had published the hole project paralell with the production site, I merged my changes with the old page and that's where I'm standing now.
Tomorrow I have to talk with my customer to see if the page is working or not.

From the early days there was something called dll - hell - perhaps it's not the best name for it, but cache-trash comes to my mind. :)

Thank you for helping out, Lars!

Edited, Mar 08, 2011 20:56
Mar 10, 2011 1:54
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.