Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Caching


Message #1 by "O'Hara, Elliott M" <EMOHARA@k...> on Thu, 30 Aug 2001 08:42:00 -0400
Why is IIS 5 Caching my asp pages? How do I stop it???

Message #2 by Sam Clohesy <sam@e...> on Thu, 30 Aug 2001 14:47:40 +0100
I know that on NT4 you go to the properties in the root of IIS (The computer

icon) right click go properties then edit on wwwservices then home directory

then process options then you can choose the ASP pages cached options





Thanks





-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: 30 August 2001 13:42

To: ASP Web HowTo

Subject: [asp_web_howto] Caching





Why is IIS 5 Caching my asp pages? How do I stop it???
Message #3 by "Jason Olson" <jolson88@y...> on Thu, 30 Aug 2001 07:59:06 -0700
I think that putting "Response.Expires = 0" at the top of your page might do

the trick.



Jason Olson

Internet Application Developer





-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Thursday, August 30, 2001 5:42 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Caching





Why is IIS 5 Caching my asp pages? How do I stop it???
Message #4 by "O'Hara, Elliott M" <EMOHARA@k...> on Thu, 30 Aug 2001 11:21:42 -0400
well... I can't get it that far...

I made a new version of an app... and I saved it in the right location

(right where the old one used to be) but I keep seeing the old one...



-----Original Message-----

From: Jason Olson [mailto:jolson88@y...]

Sent: Thursday, August 30, 2001 10:59 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Caching





I think that putting "Response.Expires = 0" at the top of your page might do

the trick.



Jason Olson

Internet Application Developer





-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Thursday, August 30, 2001 5:42 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Caching





Why is IIS 5 Caching my asp pages? How do I stop it???
Message #5 by Jason Olson <jolson88@y...> on Thu, 30 Aug 2001 11:57:03 -0700 (PDT)
Have you tried cleaning your history? I like to make sure that EVERY time I visit a page I have the
latest version so I always set my browser to keep pages in history for 0 days (tool | internet options | History on the General
Tab). Hope this does the trick for ya'.

 

  "O'Hara, Elliott M" <EMOHARA@k...> wrote: well... I can't get it that far...

I made a new version of an app... and I saved it in the right location

(right where the old one used to be) but I keep seeing the old one...



-----Original Message-----

From: Jason Olson [mailto:jolson88@y...]

Sent: Thursday, August 30, 2001 10:59 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Caching





I think that putting "Response.Expires = 0" at the top of your page might do

the trick.



Jason Olson

Internet Application Developer





-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Thursday, August 30, 2001 5:42 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Caching





Why is IIS 5 Caching my asp pages? How do I stop it???

Message #6 by "O'Hara, Elliott M" <EMOHARA@k...> on Thu, 30 Aug 2001 15:44:18 -0400
Thanks for the ideas guys...

Heres what really works...



on IIS Server MMC

Go to HomeDirectory for your APP...

Click Application Setting

and uncheck Cache ISAPI Applications



hit reload on the page and it was the right one...









-----Original Message-----

From: Jason Olson [mailto:jolson88@y...]

Sent: Thursday, August 30, 2001 2:57 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Caching





Have you tried cleaning your history? I like to make sure that EVERY time I

visit a page I have the latest version so I always set my browser to keep

pages in history for 0 days (tool | internet options | History on the

General Tab). Hope this does the trick for ya'.

 

  "O'Hara, Elliott M" <EMOHARA@k...> wrote: well... I can't

get it that far...

I made a new version of an app... and I saved it in the right location

(right where the old one used to be) but I keep seeing the old one...



-----Original Message-----

From: Jason Olson [mailto:jolson88@y...]

Sent: Thursday, August 30, 2001 10:59 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Caching





I think that putting "Response.Expires = 0" at the top of your page might do

the trick.



Jason Olson

Internet Application Developer





-----Original Message-----

From: O'Hara, Elliott M [mailto:EMOHARA@k...]

Sent: Thursday, August 30, 2001 5:42 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Caching





Why is IIS 5 Caching my asp pages? How do I stop it???
Message #7 by "Hema R." <hema.r@s...> on Fri, 31 Aug 2001 09:40:17 +0530
That should be Response.Expires = -1



> -----Original Message-----

> From: Jason Olson [SMTP:jolson88@y...]

> Sent: 30 August Thursday 2001 07:59 AM

> To: ASP Web HowTo

> Subject: [asp_web_howto] RE: Caching

> 

> I think that putting "Response.Expires = 0" at the top of your page might

> do

> the trick.

> 

> Jason Olson

> Internet Application Developer

> 

> 

> -----Original Message-----

> From: O'Hara, Elliott M [mailto:EMOHARA@k...]

> Sent: Thursday, August 30, 2001 5:42 AM

> To: ASP Web HowTo

> Subject: [asp_web_howto] Caching

> 

> 

> Why is IIS 5 Caching my asp pages? How do I stop it???

> 

Message #8 by "Ken Schaefer" <ken@a...> on Fri, 31 Aug 2001 19:42:25 +1000
argh! The poster said that *IIS* was caching pages. What does

Response.Expires have to do with server-side caching?



Actually, what does Response.Expires have to do with caching at all?

Response.Expires sets the expiry date for a page. It does *not* stop a page

being cached.



<% Response.AddHeader "pragma","no-cache" %>



stops caching. If you want to expire something, use

Response.ExpiresAbsolute - that way there is no problem with the clocks of

servers and clients being out-of-synch:



<% Response.ExpiresAbsolute = #1/1/1980# %>



but remember - expiring a page <> stopping a page being cached.

And lastly, to stop the *server* caching something you need to change the

ISAPI caching settings on the server (cache ISAPI applications)



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----- Original Message -----

From: "Hema R." <hema.r@s...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, August 31, 2001 2:10 PM

Subject: [asp_web_howto] RE: Caching





: That should be Response.Expires = -1

:

: > -----Original Message-----

: > From: Jason Olson [SMTP:jolson88@y...]

: > Sent: 30 August Thursday 2001 07:59 AM

: > To: ASP Web HowTo

: > Subject: [asp_web_howto] RE: Caching

: >

: > I think that putting "Response.Expires = 0" at the top of your page

might

: > do

: > the trick.

: >

: > Jason Olson

: > Internet Application Developer

: >

: >

: > -----Original Message-----

: > From: O'Hara, Elliott M [mailto:EMOHARA@k...]

: > Sent: Thursday, August 30, 2001 5:42 AM

: > To: ASP Web HowTo

: > Subject: [asp_web_howto] Caching

: >

: >

: > Why is IIS 5 Caching my asp pages? How do I stop it???

: >





Message #9 by "O'Hara, Elliott M" <EMOHARA@k...> on Fri, 31 Aug 2001 06:55:10 -0400
Ken...

Where where you before I figured this out?!! 

:o)

Hey everyone... he's right....

The server was caching the app...

the pages weren't being cached on the client...



thanks 



-----Original Message-----

From: Ken Schaefer [mailto:ken@a...]

Sent: Friday, August 31, 2001 5:42 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Caching





argh! The poster said that *IIS* was caching pages. What does

Response.Expires have to do with server-side caching?



Actually, what does Response.Expires have to do with caching at all?

Response.Expires sets the expiry date for a page. It does *not* stop a page

being cached.



<% Response.AddHeader "pragma","no-cache" %>



stops caching. If you want to expire something, use

Response.ExpiresAbsolute - that way there is no problem with the clocks of

servers and clients being out-of-synch:



<% Response.ExpiresAbsolute = #1/1/1980# %>



but remember - expiring a page <> stopping a page being cached.

And lastly, to stop the *server* caching something you need to change the

ISAPI caching settings on the server (cache ISAPI applications)



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----- Original Message -----

From: "Hema R." <hema.r@s...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, August 31, 2001 2:10 PM

Subject: [asp_web_howto] RE: Caching





: That should be Response.Expires = -1

:

: > -----Original Message-----

: > From: Jason Olson [SMTP:jolson88@y...]

: > Sent: 30 August Thursday 2001 07:59 AM

: > To: ASP Web HowTo

: > Subject: [asp_web_howto] RE: Caching

: >

: > I think that putting "Response.Expires = 0" at the top of your page

might

: > do

: > the trick.

: >

: > Jason Olson

: > Internet Application Developer

: >

: >

: > -----Original Message-----

: > From: O'Hara, Elliott M [mailto:EMOHARA@k...]

: > Sent: Thursday, August 30, 2001 5:42 AM

: > To: ASP Web HowTo

: > Subject: [asp_web_howto] Caching

: >

: >

: > Why is IIS 5 Caching my asp pages? How do I stop it???

: >





Message #10 by "Monique Angelich" <mangelich@m...> on Fri, 31 Aug 2001 08:49:20 -0400
If anyone needs to prevent CLIENT-side caching, place this code in the head

of the doc.



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



Just an FYI.



Moe

----- Original Message -----

From: "Ken Schaefer" <ken@a...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, August 31, 2001 5:42 AM

Subject: [asp_web_howto] RE: Caching





> argh! The poster said that *IIS* was caching pages. What does

> Response.Expires have to do with server-side caching?

>

> Actually, what does Response.Expires have to do with caching at all?

> Response.Expires sets the expiry date for a page. It does *not* stop a

page

> being cached.

>

> <% Response.AddHeader "pragma","no-cache" %>

>

> stops caching. If you want to expire something, use

> Response.ExpiresAbsolute - that way there is no problem with the clocks of

> servers and clients being out-of-synch:

>

> <% Response.ExpiresAbsolute = #1/1/1980# %>

>

> but remember - expiring a page <> stopping a page being cached.

> And lastly, to stop the *server* caching something you need to change the

> ISAPI caching settings on the server (cache ISAPI applications)

>

> Cheers

> Ken

>

>
Message #11 by "Jason Olson" <jolson88@y...> on Fri, 31 Aug 2001 12:02:47 -0700
Arg. I'm sorry, it doesn't. I pasted the wrong line of code from my App into

the email. It was supposed to be the line you stated below. Sorry for the

confusion.



Jason Olson

Internet Application Developer





-----Original Message-----

From: Ken Schaefer [mailto:ken@a...]

Sent: Friday, August 31, 2001 2:42 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Caching





argh! The poster said that *IIS* was caching pages. What does

Response.Expires have to do with server-side caching?



Actually, what does Response.Expires have to do with caching at all?

Response.Expires sets the expiry date for a page. It does *not* stop a page

being cached.



<% Response.AddHeader "pragma","no-cache" %>



stops caching. If you want to expire something, use

Response.ExpiresAbsolute - that way there is no problem with the clocks of

servers and clients being out-of-synch:



<% Response.ExpiresAbsolute = #1/1/1980# %>



but remember - expiring a page <> stopping a page being cached.

And lastly, to stop the *server* caching something you need to change the

ISAPI caching settings on the server (cache ISAPI applications)



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----- Original Message -----

From: "Hema R." <hema.r@s...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, August 31, 2001 2:10 PM

Subject: [asp_web_howto] RE: Caching





: That should be Response.Expires = -1

:

: > -----Original Message-----

: > From: Jason Olson [SMTP:jolson88@y...]

: > Sent: 30 August Thursday 2001 07:59 AM

: > To: ASP Web HowTo

: > Subject: [asp_web_howto] RE: Caching

: >

: > I think that putting "Response.Expires = 0" at the top of your page

might

: > do

: > the trick.

: >

: > Jason Olson

: > Internet Application Developer

: >

: >

: > -----Original Message-----

: > From: O'Hara, Elliott M [mailto:EMOHARA@k...]

: > Sent: Thursday, August 30, 2001 5:42 AM

: > To: ASP Web HowTo

: > Subject: [asp_web_howto] Caching

: >

: >

: > Why is IIS 5 Caching my asp pages? How do I stop it???

Message #12 by "O'Hara, Elliott M" <EMOHARA@k...> on Fri, 31 Aug 2001 15:40:58 -0400
there is no "line" in the code to fix it...

It was an IIS Setting that needed to be fixed...



-----Original Message-----

From: Jason Olson [mailto:jolson88@y...]

Sent: Friday, August 31, 2001 3:03 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Caching





Arg. I'm sorry, it doesn't. I pasted the wrong line of code from my App into

the email. It was supposed to be the line you stated below. Sorry for the

confusion.



Jason Olson

Internet Application Developer





-----Original Message-----

From: Ken Schaefer [mailto:ken@a...]

Sent: Friday, August 31, 2001 2:42 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Caching





argh! The poster said that *IIS* was caching pages. What does

Response.Expires have to do with server-side caching?



Actually, what does Response.Expires have to do with caching at all?

Response.Expires sets the expiry date for a page. It does *not* stop a page

being cached.



<% Response.AddHeader "pragma","no-cache" %>



stops caching. If you want to expire something, use

Response.ExpiresAbsolute - that way there is no problem with the clocks of

servers and clients being out-of-synch:



<% Response.ExpiresAbsolute = #1/1/1980# %>



but remember - expiring a page <> stopping a page being cached.

And lastly, to stop the *server* caching something you need to change the

ISAPI caching settings on the server (cache ISAPI applications)



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----- Original Message -----

From: "Hema R." <hema.r@s...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, August 31, 2001 2:10 PM

Subject: [asp_web_howto] RE: Caching





: That should be Response.Expires = -1

:

: > -----Original Message-----

: > From: Jason Olson [SMTP:jolson88@y...]

: > Sent: 30 August Thursday 2001 07:59 AM

: > To: ASP Web HowTo

: > Subject: [asp_web_howto] RE: Caching

: >

: > I think that putting "Response.Expires = 0" at the top of your page

might

: > do

: > the trick.

: >

: > Jason Olson

: > Internet Application Developer

: >

: >

: > -----Original Message-----

: > From: O'Hara, Elliott M [mailto:EMOHARA@k...]

: > Sent: Thursday, August 30, 2001 5:42 AM

: > To: ASP Web HowTo

: > Subject: [asp_web_howto] Caching

: >

: >

: > Why is IIS 5 Caching my asp pages? How do I stop it???


  Return to Index