Re: How do I get Google to crawl a WebCat site?
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48732
interpreted = N
texte = Dennis J. Bonsall, Jr. wrote:> Yes, I had. But, there were so many responses to the thread and I was trying to> respond to each. I have since attempted to incorporate the cache control templates> you had posted to the list on 11/04/02, with limited success. Perhaps I am missing> something, but in the gmtdate.inc file there is a showif context with the> comparison of [GMTexpires]>86400 (and two other uses of GMTexpires), but I cannot> find anything within the code where GMTexpires is set. Sorry I took so long to get back to you; you're right, the version I posted was fatally flawed. The scary thing is that's what we've been running on our server as well. It wasn't harmful; it just didn't work properly. Here's the corrected code (you may have to rewrap the lines):[!] ------- GMTdate.inc -------Takes optional parameter offset in minutes and returns current date/time in GMT long formatReplace the {5:00:00} with your non-DST offset from GMT[/!][math time&show=f]GMT={[date %X]}+{5:00:00}[showif [date format=%Z]^Daylight]-{1:00:00}[/showif][/math][!][/!][math time&show=f]NOW={[date %X]}[/math][!][/!][if [offset]=[raw][offset][/raw]][!][/!][then][!][/!] [math show=f]offsettime=0[/math][/then][!][/!][else][!][/!] [math show=f]offsettime=[offset]*60[/math][/else][!][/!][/if][!]--- Create the GMTexpires variable[/!][math time&show=f]GMTexpires=[GMT]+[offsettime][/math][!]--- Create the MIMEexpires string[/!][text show=t]MIMEexpires=[!][/!][if ([GMT]>[NOW]) and ([GMTexpires]>[GMT]) and ([GMTexpires]<86400)][!] ---- all in the same day ----[/!][then][!][/!][date format=%a, %d %b %Y][!][/!][/then][!] ---- at least one day later ----[/!][else][!][/!][format days_to_date %a, %d %b %Y][math]{[date]}+{00/[!][/!][showif [GMTexpires]>86400][math]floor([GMTexpires]/86400)[/math][/showif][!][/!][showif [GMTexpires]<86401]01[/showif][!][/!]/0000}[/math][/format][!][/!][/else][!][/!][/if][!][/!] [Format Seconds_To_Time][GMTexpires][/Format][!][/!] GMT[/text]John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Dennis J. Bonsall, Jr. wrote:> Yes, I had. But, there were so many responses to the thread and I was trying to> respond to each. I have since attempted to incorporate the cache control templates> you had posted to the list on 11/04/02, with limited success. Perhaps I am missing> something, but in the gmtdate.inc file there is a showif context with the> comparison of [GMTexpires]>86400 (and two other uses of GMTexpires), but I cannot> find anything within the code where GMTexpires is set. Sorry I took so long to get back to you; you're right, the version I posted was fatally flawed. The scary thing is that's what we've been running on our server as well. It wasn't harmful; it just didn't work properly. Here's the corrected code (you may have to rewrap the lines):[!] ------- GMTdate.inc -------Takes optional parameter offset in minutes and returns current date/time in GMT long formatReplace the {5:00:00} with your non-DST offset from GMT[/!][math time&show=f]GMT={[date %X]}+{5:00:00}[showif [date format=%Z]^Daylight]-{1:00:00}[/showif][/math][!][/!][math time&show=f]NOW={[date %X]}[/math][!][/!][if [offset]=[raw][offset][/raw]][!][/!][then][!][/!] [math show=f]offsettime=0[/math][/then][!][/!][else][!][/!] [math show=f]offsettime=[offset]*60[/math][/else][!][/!][/if][!]--- Create the GMTexpires variable[/!][math time&show=f]GMTexpires=[GMT]+[offsettime][/math][!]--- Create the MIMEexpires string[/!][text show=t]MIMEexpires=[!][/!][if ([GMT]>[NOW]) and ([GMTexpires]>[GMT]) and ([GMTexpires]<86400)][!] ---- all in the same day ----[/!][then][!][/!][date format=%a, %d %b %Y][!][/!][/then][!] ---- at least one day later ----[/!][else][!][/!][format days_to_date %a, %d %b %Y][math]{[date]}+{00/[!][/!][showif [GMTexpires]>86400][math]floor([GMTexpires]/86400)[/math][/showif][!][/!][showif [GMTexpires]<86401]01[/showif][!][/!]/0000}[/math][/format][!][/!][/else][!][/!][/if][!][/!] [Format Seconds_To_Time][GMTexpires][/Format][!][/!] GMT[/text]John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Forms Search Questions (1997)
Stats (2001)
(2002)
suffix mapping for NT? (1997)
So when do we get something similar? (1998)
RE: Missing contexts on NT (1997)
preference to using Apache 2.x or 1.3.x with WebDNA 6.0? (2004)
$append (1998)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
WebCat2 beta 11 - new prefs ... (1997)
WebCat2b13MacPlugIn - [include] (1997)
FM 4.1 and Webcat? (1998)
WC2f3 (1997)
affiliate marketing program (1998)
Browser Caching (2003)
[WebDNA] MD5 Hash issue (2009)
Logging purchases (1997)
RE: strip .0 off off IPaddress (1999)
auto-stripping of spaces (1997)
[WebDNA] some tests (2011)