Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 BUG (3.1sr3): pop_preview.asp Caching issue
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 December 2000 :  02:49:06  Show Profile
When using the Preview function, usually you have to "Refresh" the Preview window to see the true Preview if you make changes rather quickly and then click Preview to see how your change affected the look of the message. By inserting the following code in to pop_preview.asp , the page won't be cached and you won't have to keep "refreshing" the preview window to see your latest changes.

Insert this:

<%
Response.Buffer = True
Response.Expires = -1
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
%>


right after this:

<!--#INCLUDE FILE="inc_functions.asp" -->


(at least this works for me, YMMV)

(as noted below, Netscape has problems with this.... )

Edited by - Richard Kinser on 19 December 2000 04:40:45

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 19 December 2000 :  04:27:26  Show Profile  Visit Kat's Homepage
hmm great for IE but have you tried it on netscape? it squashes the window!!!!! any solutions?

KatsKorner
http://just-auto.com/forums/


Edited by - kat on 19 December 2000 04:27:38
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 03 January 2001 :  00:28:32  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
Richard,

can you confirm or deny this?

Thanks!

Reinsnitz (Mike)
><)))'>
"The glory of young men is their strength, and the honor of old men is their gray hair." - Proverbs 20:29
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 03 January 2001 :  00:34:53  Show Profile
It worked ok for me on Netscape 6 but I don't have any other version of Netscape to test it with. One thing I did notice is that even without adding this code, Netscape only shows the necessary lines in the window (is this the squashing Kat was talking about?), where IE shows the full size of the window even if you only have 1 line of text.

Edited by - Richard Kinser on 03 January 2001 00:35:33
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 03 January 2001 :  04:19:59  Show Profile  Visit Kat's Homepage
That is exactly the problem I was referring to. Yep.

KatsKorner
http://just-auto.com/forums/
Go to Top of Page

barky81
Junior Member

USA
166 Posts

Posted - 04 January 2001 :  16:35:18  Show Profile
quote:
...By inserting the following code in to pop_preview.asp , the page won't be cached and you won't have to keep "refreshing" the preview window to see your latest changes.

Insert this:

<%
Response.Buffer = True
Response.Expires = -1
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
%>


right after this:

<!--#INCLUDE FILE="inc_functions.asp" -->


(at least this works for me, YMMV)

(as noted below, Netscape has problems with this.... )

Edited by - Richard Kinser on 19 December 2000 04:40:45



Is there any reason that this code cannot/should not be incorporated into every snitz.asp page? When could/would this cause a problem?

And is the actual location of the insertion critical? I thought the response.buffer statement had to be the FIRST thing on the page?

In part, I ask because I am already trying to incorporate some other new include code onto all the snitz.asp pages.... (and, not surprisingly, having problems.)

Thanks!

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 04 January 2001 :  16:58:46  Show Profile
I believe that you can use the Response.Buffer=True at different places in the page. Like at the top you could have Response.Buffer=True and then later in the page you could put Response.Buffer=False and then again Response.Buffer=True further down the page.
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 04 January 2001 :  17:00:42  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
Barky,

Apparently it would cause a problem if you were using netscape (25% of your user base on the internet)

Reinsnitz (Mike)
><)))'>
"The glory of young men is their strength, and the honor of old men is their gray hair." - Proverbs 20:29
Go to Top of Page

barky81
Junior Member

USA
166 Posts

Posted - 04 January 2001 :  17:32:49  Show Profile
quote:

Barky,

Apparently it would cause a problem if you were using netscape (25% of your user base on the internet)

Reinsnitz (Mike)
><)))'>
"The glory of young men is their strength, and the honor of old men is their gray hair." - Proverbs 20:29




Hey, I hate to say it, but at this point, if I can get my forum to work, I just don't care about the netscape issue anymore. I was asking the question within the context of this other discussion, detailing some significant problems I am having.

What makes it problematic for me is trying to limit access to the forum's pages UNLESS the user is logged into the site. Thus I have to get the redirect in before the page loads (especially in those cases where the url might include parameters leading to a specific message). In other words, putting a redirect test into post.asp does not work when this is passed (unless it's buffered true):

post.asp?TOPIC_ID=3437&FORUM_ID=34&CAT_ID=10&etc....

Between that and the response.expire stuff, it seems my site doesn't work.

Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 26 February 2001 :  10:02:12  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
<-bump->

Reinsnitz (Mike)
><)))'> Need a Mod?
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 30 January 2002 :  01:21:26  Show Profile
we are using a form redirect for the pop_preview.asp page, so the data will alwasy be current (no more cached data in the preview window).

fixed in v3.4
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07