|
-
Jan 16th, 2010, 02:42 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] IIS Caching? (Local)
I know this does not belong in the asp.net section, but seeing you guys will be using IIS and the PHP guys wont.
I removed Apache on my machine and now only use IIS. Had the web platform installer help me get wordpress, php, mysql working as well. (Do both php and asp.net)
All works fine as before, but I just find my pages get cached somewhere (assume by IIS?) now, making it a pain to write html/css. Have to do hard refresh'es over and over before some changes get picked up.
Any advice? Been ages since I actually used IIS (now 7, but last I used was 5 I think)
-
Jan 16th, 2010, 02:56 AM
#2
Re: IIS Caching? (Local)
It sounds like the browser caching static files (html, css, JS). When in testing faze it can be painful but you need to keep clicking the refresh button to get these static files from the server (local or remote) instead of from the temp files used locally (the client machine) by the browser.
If your talking abour dynamic pages - aspx then you can set caching properties to server them every time from the server.
-
Jan 16th, 2010, 03:03 AM
#3
Thread Starter
Frenzied Member
Re: IIS Caching? (Local)
Hmmm...how annoying. Spending more time on re-freshening than tweaking my css here.
But then...this was not an issue until yesterday when I still used Apache. Isn't there something in IIS one can turn off (I did unchecked the performance caching options)
This also seems to have no effect (figured might be a short term solution)
<meta http-equiv="Cache-Control" content="no-cache"/>
-
Jan 16th, 2010, 03:13 AM
#4
Re: IIS Caching? (Local)
I have not tried it but I opened IIS on my local machine and under http headers you can set content expiration to imediate. I don't know what effect that would have on include files like css. I tend to leave IIS config the same as the remote server so I just click refresh.
Maybe someone else knows more - It's dinner time so I've got to go but am interested what other replies you get.
-
Jan 16th, 2010, 03:20 AM
#5
Thread Starter
Frenzied Member
Re: IIS Caching? (Local)
Opened my eyes and saw a big clear icon in IIS manager with an "Output Caching" caption.
Double-Click it, and click "Edit Feuture Settings" in the right pane. Now just turn off caching.
Retarded I am!
-
Jan 16th, 2010, 09:21 AM
#6
Re: [RESOLVED] IIS Caching? (Local)
Hey,
Just on a side note, while I am testing html/css, I typically always hold down CTRL and hit Refresh, that way ensuring the browser requests a new version of the page.
Just a habit I have gotten into.
Gary
-
Jan 16th, 2010, 09:58 AM
#7
Thread Starter
Frenzied Member
Re: [RESOLVED] IIS Caching? (Local)
Yep...hard refresh is what I resort too also (though I still need to do that several times, driving me nuts)
Thing with hard refresh is just it reload all your css/javascript/images. Not always that great on a development machine.
Spoke too fast about fixing it. Posted over on the PHP section about WIMP problems.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|