Current location: Hot Scripts Forums » Programming Languages » ASP » [SOLVED] URGENT!!! Page Caching Issue IIS6.0


[SOLVED] URGENT!!! Page Caching Issue IIS6.0

Reply
  #1 (permalink)  
Old 01-21-06, 02:41 AM
sensitive sensitive is offline
Banned
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy [SOLVED] URGENT!!! Page Caching Issue IIS6.0

HI,

I am stucked with a Page caching issue. I have win2003 installed on my terminal with IIS6. I have added following lines to prevent page caching but no luck so far.

Code:
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
Its still showing an old pages. I dont think that its a cache problem of IE6 coz when i restart IIS, things get perfect for a short time. Whereas i have also tried to access the site with FireFox and its also showing the old pages.

kindly help me out from this problem.
I need an URGENT help plzzzzzzzzz...

Regards

Last edited by digioz; 01-23-09 at 01:47 PM. Reason: Please use code tags!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-21-06, 01:58 PM
MadDog MadDog is offline
Code Master
 
Join Date: Aug 2003
Posts: 935
Thanks: 0
Thanked 0 Times in 0 Posts
You need to change the Expires variable:

Response.Expires = -1
__________________
Drew Gauderman
ASP - MSSQL Coder / Buisness Owner / Coder for Hire!
MSN-ICQ-AIM-YIM in Profile

http://www.iportalx.net an easy ASP portal system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-01-09, 11:33 AM
webmasteroy webmasteroy is offline
New Member
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Same Issue in PHP

I am having the same issue with some of my PHP Scripts running on iis 6.0, through the fastcgi module.

Its weird though, if I change the file on the server. The display window in firefox doesn't change when I refresh, however if I view the source of the page. The source has changed.

Is their any global settings that I can to fix this bug?

Any help would be greatly appreciated!

Kind Regards,
Aaron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-22-09, 11:59 PM
mk456's Avatar
mk456 mk456 is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Page caching issue on IIS6.0

Well, I am trying to solving out your problem, I hope it will work for you.
I have also faced this problem so far , but after getting this my problem has sorted out .

Declarative Approach:

Code:
<%@ OutputCache Location="None" VaryByParam="None" %>
 
Progmatic Approach:
 
Response.Cache.SetCacheability(HttpCacheability.NoCache)
 
Response.Cache.SetAllowResponseInBrowserHistory(false);

Last edited by digioz; 01-23-09 at 01:48 PM. Reason: Please use code tags!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 02-12-09, 02:33 PM
artice-magazine.org artice-magazine.org is offline
New Member
 
Join Date: Feb 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Receiving same issue , anyone able to solve this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 02-12-09, 02:47 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
Did you try the suggestions above already?

Pete
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 03-11-09, 03:49 AM
furthersorion furthersorion is offline
Newbie Coder
 
Join Date: Mar 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
mk456's solution has worked for me. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help troubleshooting ASP web page issue after move to new server davenet Job Offers & Assistance 0 12-30-05 03:37 PM
Classified Ads skipper23 Perl 3 11-22-05 03:22 AM
Passing a variable to another page tapir PHP 8 02-16-05 06:38 PM
page browsing problem mivec PHP 3 04-17-04 04:43 AM
Classified Ads skipper23 Perl 2 12-30-03 04:43 AM


All times are GMT -5. The time now is 07:11 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.