[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] [Raq3] Server-side Includes and "XBitHack"
- Subject: RE: [cobalt-users] [Raq3] Server-side Includes and "XBitHack"
- From: flash22@xxxxxxx
- Date: Tue Feb 13 02:56:46 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Tue, 13 Feb 2001, Donna Lever wrote:
>
> I wouldn't suggest setting .html as server-parsed for the entire
> server - but it should be OK in the virtual site's config. It
> depends on how many server-parsed files there are. If all the
> pages are server-parsed for that domain, you may as well set it
> than not. It turns out the same amount of work for the server in
> the end. If there's only one or two files you need parsed, the
> simplest solution is just to call them .shtml and not be
> concerned with all the extra fiddling.
I suspect the idea is to avoid the non-cache issues with shtml's, XBithack
is the only easy way to do this unfortunatly...
Speaking of cache, remember , when testing this it's important to
specificlly flush the browser cache, because the .html files have
cache-expire data in them they will tend to refuse to reload , even when
requested manually (NS too) you need to clear the entire browser cache and
retry....
fwiw, i know XBithack works on Raq2's ...i used to use it from time to
time, however apache has somewhat better ways to handle this, it might
be worth looking at MultiViews (to hide the extension) and the options for
setting default expire for dynamic content
ExpiresActive on
ExpiresDefault A3600
#hr for cgi's (cause of IE form caching)
ExpiresByType text/html A1000000
ExpiresByType server-parsed A1000000
#and for the truely perverse
Header set Last-Modified "Fri, 11 Nov 2000 11:11:11 GMT"
---
Please understand what these do before using them, they can have *really*
strange side effects....
---
Here's a totally different trick: (.htaccess)
#stupid search engine fix
RewriteEngine on
RewriteBase /
RewriteRule ^([^/]*)\.html$ $1.shtml [L]
This makes requests for html pages into requests for shtml pages
transparently to the user...(but doesn't fix the fact there's no
cache-expire info)
Wrote this because a site was getting tons of 404's from search engine
links , so it seemed like the user friendly thing to do when the site got
redesigned with .shtml pages...
gsh