Overriding default mime headers

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48724
interpreted = N
texte = I am attempting to override the default mime headers sent by WebCat to the browser, specifically the Expires header. The expires header sent is always the same time as the date and last-modified, which means that pages cannot be cached. I have been informed by other members on this list that this may cause search engines to not index sites on my server. Other sites on my server (non-WebCat sites) have no problems being indexed. Only WebCat processed sites have problems. My server's default mime headers do not include an expires header; only pages processed by WebCat include an expires header. All attempts at setting a different Expires header have failed, even setting a specific date and time. From discussions in the archives by other list members, it appears as though it should be possible to override the expires header sent by WebCat using the [setmimeheader] tag. But I cannot get it to work. Here is the code used:[setmimeheader name=Expires&value=[date %a %b %d] 23:59:59 [date %Y] GMT]Is there an issue with the WebStar V for OSX version of WebCat? I'm running version 4.5.1 of WebCat with WebStar 5.2.4 on MacOS 10.2.4.Thanks,Dennis ------------------------------------------------------------- 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. Overriding default mime headers (Dennis J. Bonsall, Jr. 2003)
I am attempting to override the default mime headers sent by WebCat to the browser, specifically the Expires header. The expires header sent is always the same time as the date and last-modified, which means that pages cannot be cached. I have been informed by other members on this list that this may cause search engines to not index sites on my server. Other sites on my server (non-WebCat sites) have no problems being indexed. Only WebCat processed sites have problems. My server's default mime headers do not include an expires header; only pages processed by WebCat include an expires header. All attempts at setting a different Expires header have failed, even setting a specific date and time. From discussions in the archives by other list members, it appears as though it should be possible to override the expires header sent by WebCat using the [setmimeheader] tag. But I cannot get it to work. Here is the code used:[setmimeheader name=Expires&value=[date %a %b %d] 23:59:59 [date %Y] GMT]Is there an issue with the WebStar V for OSX version of WebCat? I'm running version 4.5.1 of WebCat with WebStar 5.2.4 on MacOS 10.2.4.Thanks,Dennis ------------------------------------------------------------- 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/ Dennis J. Bonsall, Jr.

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/Tenon server consulting near DC (2003) Hiding files/images. (2000) Is [variable] a Number? (2007) Wits end with this [sendmail] problem. ;) (2000) WebCat2 - storing unformatted date data? (1997) WebSite and *NO* Authentication Dialog Box!!? (1998) Webstar V & OS X (2001) RE: Credit Card Checksum (1997) Security Tip (1996) Here's how to kill a Butler Database. (1997) [WebDNA] Happy Valentine's Day! (2012) Creating main- and sub-category search (1997) Line Feed problems ... (2002) Google Problem (2003) Not really WebCat - need HTML Grider (1997) WebCat2b15MacPlugin - showing [math] (1997) Where's Cart Created ? (1997) closedatabases simple question.. (2002) Only charge card when product shipped ? (1997) Summing fields (1997)