Re: Cart ID Duplication
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36726
interpreted = N
texte = WebMaster wrote:> > Checked this, all these customers have all come directly to our site (IE,> directly typed in the URL), there are no referrer URL at all.> > And the fact that all 15 are using exactly the same ISP, leads me to think> that it has to be a proxy cache server issue.> If this is a proxy cache issue, you can try using the following includefile, which is what I had to do to stop AOL from caching my pages (andthey have the stupidest cache around!).Call this as [include MIMEHeaders.inc&expires=0] if you want no cacheand some other value if you do want it to cache. In addition, we storeour cart in a session cookie, which no cache should be able to get at.[!] ------- MIMEHeaders.inc ------- [/!][!]5:00 is MY offset from UTC - replace with YOUR offset[/!][!]Also remember to change when daylight savings time takes effect[/!][math time&show=f]GMToffset={4:00:00}[/math][!] Configure useful variables [/!][math time&show=f]GMT={[date %X]}+[GMToffset][/math][math time&show=f]NOW={[date %X]}[/math][!] Check for input variable [/!][if [expires]=[raw][expires][/raw]][then] [math show=f]expiresat=3600[/math][/then][else] [math show=f]expiresat=[expires]*60[/math][/else][/if][!] Create the GMTexpires variable [/!][math time&show=f]GMTexpires=[math][GMT]+[expiresat][/math][/math][!] Create the MIMEmodified string [/!][text]MIMEmodified=[!][/!][if ([GMT]>[NOW])][!][/!][then][!][/!][date format=%a, %d %b][!][/!][/then][!][/!][else][!]if GMT after midnight then increment date too[/!][format days_to_date %a, %d%b][math]{[date]}+{00/01/0000}[/math][/format][!][/!][/else][!][/!][/if][!][/!] [date format=%Y] [Format Seconds_To_Time][GMT][/Format][!][/!] GMT[/text][!] Create the MIMEexpires string [/!][text]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][!] Actually set the MIME headers [/!][SETMIMEHEADER name=Last-modified&value=[MIMEmodified]][SETMIMEHEADER name=Expires&value=[MIMEexpires]]--John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
WebMaster wrote:> > Checked this, all these customers have all come directly to our site (IE,> directly typed in the URL), there are no referrer URL at all.> > And the fact that all 15 are using exactly the same ISP, leads me to think> that it has to be a proxy cache server issue.> If this is a proxy cache issue, you can try using the following includefile, which is what I had to do to stop AOL from caching my pages (andthey have the stupidest cache around!).Call this as [include MIMEHeaders.inc&expires=0] if you want no cacheand some other value if you do want it to cache. In addition, we storeour cart in a session cookie, which no cache should be able to get at.[!] ------- MIMEHeaders.inc ------- [/!][!]5:00 is MY offset from UTC - replace with YOUR offset[/!][!]Also remember to change when daylight savings time takes effect[/!][math time&show=f]GMToffset={4:00:00}[/math][!] Configure useful variables [/!][math time&show=f]GMT={[date %X]}+[GMToffset][/math][math time&show=f]NOW={[date %X]}[/math][!] Check for input variable [/!][if [expires]=[raw][expires][/raw]][then] [math show=f]expiresat=3600[/math][/then][else] [math show=f]expiresat=[expires]*60[/math][/else][/if][!] Create the GMTexpires variable [/!][math time&show=f]GMTexpires=[math][GMT]+[expiresat][/math][/math][!] Create the MIMEmodified string [/!][text]MIMEmodified=[!][/!][if ([GMT]>[NOW])][!][/!][then][!][/!][date format=%a, %d %b][!][/!][/then][!][/!][else][!]if GMT after midnight then increment date too[/!][format days_to_date %a, %d%b][math]{[date]}+{00/01/0000}[/math][/format][!][/!][/else][!][/!][/if][!][/!] [date format=%Y] [Format Seconds_To_Time][GMT][/Format][!][/!] GMT[/text][!] Create the MIMEexpires string [/!][text]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][!] Actually set the MIME headers [/!][SETMIMEHEADER name=Last-modified&value=[MIMEmodified]][SETMIMEHEADER name=Expires&value=[MIMEexpires]]--John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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://search.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:
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
5.0 Preview Promotion Extension (2003)
[WebDNA] Non-numbers entered into a field that asks for a number (2008)
Pithy questions on webcommerce & siteedit (1997)
SiteEditPro (1996)
Error: unknown exception (2000)
[WebDNA] o search engines index .db files? (2009)
RE: AccountAuthorizer doesn't seem to work (1997)
Replace Statement (1997)
Emailer tracking (1997)
Authenticate (1999)
Formating found categories (1997)
website pro trouble (1998)
Need relative path explanation (1997)
WebCatalog2 Feature Feedback (1996)
ReadDateFormat bug in 3.x (1998)
Writefile doesn't work, which permissions to use? (2005)
E-mail formating question (1999)
[WebDNA] Server speedget (2009)
Up and running ... at last !! (1997)