FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General FutureQuest Hosting Support
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-04-2000, 12:15 AM   Postid: 13337
JoeRT
Site Owner
 
JoeRT's Avatar

Forum Notability:
38 pts: User-friendly
[Post Feedback]
 
Join Date: Jul 1999
Location: Grants Pass, OR
Posts: 592
Preventing caching

Has anyone heard of any new and creative ways to keep pages from being cached?  I'm familiar with the pragma no-cache  and expires 0 tags, but they don't always seem to work.  I have some dynamic content on a couple of my sites, and don't want info or pics from the morning showing up in the afternoon, making the pages look outdated.

Thanks!

------------------
Joe Torsitano
www.weatherforyou.com
www.tiswest.com
JoeRT is offline   Reply With Quote
Old 01-04-2000, 12:39 AM   Postid: 13338
Justin
Visitor
 
Justin's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Jan 1999
Location: Kissimmee, FL
Posts: 3,672
I am behind a cache, and this particular cache is relentless... but it will not cache dynamic content that is obviously dynamic (eg, has a ? in the URL or is obviously a CGI). Using tricks like we did for www.aota.net actually cause the pages to be cached, but for our purposes it is fine, as it's not updated daily...

Also note that in my experience, sending *proper* no-cache headers works fine (read: not <meta> tags, actual HTTP headers - <meta> tags can easily be created or spoofed by anyone with a site on any server, so search engines/caches tend to ignore them). In PHP it's simple to add headers using the header() function.

Other than that, I don't really know of a way to prevent caching on static looking content... that's the point of static content (rather that's the point of a cache)...

------------------
Justin Nelson
FutureQuest Support
Justin is offline   Reply With Quote
Old 01-04-2000, 10:42 AM   Postid: 13339
JoeRT
Site Owner
 
JoeRT's Avatar

Forum Notability:
38 pts: User-friendly
[Post Feedback]
 
Join Date: Jul 1999
Location: Grants Pass, OR
Posts: 592
Thanks, Justin.  My problem is the opening page (index.shtm) is the one that's dynamic on a couple of my sites... one has a map which is updated every hour or so, and the other has some general information which is updated hourly.  Oh well, guess I'll just leave the pragma and expires tags in there and let them work when they can.  

------------------
Joe Torsitano
www.weatherforyou.com
www.tiswest.com
JoeRT is offline   Reply With Quote
Old 01-22-2000, 02:19 PM   Postid: 13340
PaulKroll
Mostly Harmless
 
PaulKroll's Avatar

Forum Notability:
367 pts: Community Guru
[Post Feedback]
 
Join Date: Jan 2000
Location: Chicago, IL,USA
Posts: 1,866
Is it possible that the page cache isn't the problem? If the map is updated hourly, and I assume the map is a graphic of some kind, then the caching information that apache is sending when the .gif or .jpg (.png?) is requested, isn't the same data that the .shtml page is sending. Since graphics generally change far less often than pages, the default for the FutureQuest server for &quot;ExpiresByType image/gif&quot; (or ExpiresActive or ExpiresDefault) might be set very high.  You might wanna try adding ExpiresByType to .htaccess with a low (or at least, relatively low) value for gifs/jpgs in that directory. (Of course, this is just my understanding of how this works: I could be wrong.
[This message has been edited by PaulKroll (edited 01-22-00@2:20 pm)]
PaulKroll is offline   Reply With Quote
Old 01-22-2000, 07:06 PM   Postid: 13341
JoeRT
Site Owner
 
JoeRT's Avatar

Forum Notability:
38 pts: User-friendly
[Post Feedback]
 
Join Date: Jul 1999
Location: Grants Pass, OR
Posts: 592
Thanks, Paul.  Now I need more help on how to use commands in the .htaccess files.    Anyone have any good references on .htaccess commands?

------------------
Joe Torsitano
www.weatherforyou.com
www.tiswest.com
JoeRT is offline   Reply With Quote
Old 01-22-2000, 09:45 PM   Postid: 13342
Justin
Visitor
 
Justin's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Jan 1999
Location: Kissimmee, FL
Posts: 3,672
http://www.apache.org/docs/



------------------
Justin Nelson
FutureQuest Support
Justin is offline   Reply With Quote
Old 01-23-2000, 02:15 AM   Postid: 13343
JoeRT
Site Owner
 
JoeRT's Avatar

Forum Notability:
38 pts: User-friendly
[Post Feedback]
 
Join Date: Jul 1999
Location: Grants Pass, OR
Posts: 592
Actually, Paul, you are right!  It works like a charm.  And thank you Justin for pointing me to the docs!

Just another reason why I'm SO glad I'm with FQ... community help and the tools to make it happen.  

------------------
Joe Torsitano
www.weatherforyou.com
www.tiswest.com
JoeRT is offline   Reply With Quote
Old 01-23-2000, 09:15 AM   Postid: 13344
Mandi
Blond and Caffeinated
 
Mandi's Avatar

Forum Notability:
703 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jan 1999
Location: Southern California, USA
Posts: 3,247
I am hoping this will help with my UBB users who find threads cached, and are unable to view their own replys until after they log off and log on (refresh isn't cutting it.)

I am a little confused by the code tag after the A:

ExpiresActive On
ExpiresByType text/html A____


Documentation on http://www.apache.org/docs/mod/mod_expires.html#AltSyn makes it sound as though ExpiresByType text/html &quot;access plus 1 month 15 days 2 hours&quot; is the proper context, rather than the A<code> featured on http://www.apache.org/docs/mod/mod_e...#expiresbytype

TIA . . . 
Mandi is offline   Reply With Quote
Old 01-23-2000, 09:29 AM   Postid: 13345
JoeRT
Site Owner
 
JoeRT's Avatar

Forum Notability:
38 pts: User-friendly
[Post Feedback]
 
Join Date: Jul 1999
Location: Grants Pass, OR
Posts: 592
Since I just found out about this myself, I'm no expert yet.  But what I'm using is M#### where #### is the number of seconds until the content expires since it was modified.  At http://apache.org/docs/mod/mod_expires.html they talk about alternate syntax (which I'm going to experiment with later today just for the fun of it )... in other words, 'A' will work, but here's 'B' for those of you who like to use a little plainer english.  Like they say on their site... &quot;The ExpiresDefault and ExpiresByType directives can also be defined in a more readable syntax.&quot;  Since it says &quot;also&quot; I'm thinking either would work.  It appears either would function correctly.
------------------
Joe Torsitano
www.weatherforyou.com
www.tiswest.com
JoeRT is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:24 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.