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 format Replace 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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

    
  1. Re: How do I get Google to crawl a WebCat site? (John Peacock 2003)
  2. Re: How do I get Google to crawl a WebCat site? (Dennis J. Bonsall, Jr. 2003)
  3. Re: How do I get Google to crawl a WebCat site? (marc@kaiwi.com (Marc Kaiwi) 2003)
  4. Re: How do I get Google to crawl a WebCat site? (John Peacock 2003)
  5. Re: How do I get Google to crawl a WebCat site? (Dan Strong 2003)
  6. Re: How do I get Google to crawl a WebCat site? (Donovan 2003)
  7. Re: How do I get Google to crawl a WebCat site? (Dennis J. Bonsall, Jr. 2003)
  8. Re: How do I get Google to crawl a WebCat site? (Dan Strong 2003)
  9. Re: How do I get Google to crawl a WebCat site? (Glenn Busbin 2003)
  10. Re: How do I get Google to crawl a WebCat site? (marc@kaiwi.com (Marc Kaiwi) 2003)
  11. Re: How do I get Google to crawl a WebCat site? (Glenn Busbin 2003)
  12. Re: How do I get Google to crawl a WebCat site? (Dan Strong 2003)
  13. Re: How do I get Google to crawl a WebCat site? (Dennis J. Bonsall, Jr. 2003)
  14. Re: How do I get Google to crawl a WebCat site? (Dan Strong 2003)
  15. Re: How do I get Google to crawl a WebCat site? (Dennis J. Bonsall, Jr. 2003)
  16. Re: How do I get Google to crawl a WebCat site? (Dan Strong 2003)
  17. Re: How do I get Google to crawl a WebCat site? (Dan Strong 2003)
  18. Re: How do I get Google to crawl a WebCat site? (Dan Strong 2003)
  19. Re: How do I get Google to crawl a WebCat site? (Donovan 2003)
  20. Re: How do I get Google to crawl a WebCat site? (Dennis J. Bonsall, Jr. 2003)
  21. Re: How do I get Google to crawl a WebCat site? (marc@kaiwi.com (Marc Kaiwi) 2003)
  22. Re: How do I get Google to crawl a WebCat site? (Glenn Busbin 2003)
  23. Cookies [was Re: How do I get Google to crawl a WebCat site?] (John Peacock 2003)
  24. Re: How do I get Google to crawl a WebCat site? (marc@kaiwi.com (Marc Kaiwi) 2003)
  25. Re: How do I get Google to crawl a WebCat site? (Dennis J. Bonsall, Jr. 2003)
  26. Re: How do I get Google to crawl a WebCat site? (Glenn Busbin 2003)
  27. Re: How do I get Google to crawl a WebCat site? (Charles Kline 2003)
  28. Re: How do I get Google to crawl a WebCat site? (John Peacock 2003)
  29. Re: How do I get Google to crawl a WebCat site? (Donovan 2003)
  30. How do I get Google to crawl a WebCat site? (Dennis J. Bonsall, Jr. 2003)
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 format Replace 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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

[WebDNA] Froala Editor working with WebDNA (2016) Linux Beta4 problems with multirecord returns (2000) WebCatalog2 Feature Feedback (1996) Decrypt Problems (always include a Subject!!!) (2000) Navigator 4.01 (1997) more info on [setlineitems] (1997) Re:quit command on NT (1997) WebCatalog and Macromedia Flash (1998) HomePage Caution (1997) [LOOP]/[BREAK] bug (2000) [format 40s]text[/format] doesn't work (1997) BUG in [showif] using ^ (contains) (1997) WebStar Secure on other machine (1997) WebCat2 - [format thousands] (1997) Search in 2 or more catalogs (1997) Changing RAM-cached browser values ... (2000) Re1000001: Setting up shop (1997) Problem with updating 2.1b7 -> 2.1.1 (1998) PIXO support (1997) send mail problem? (1997)