nemesis
03-31-2000, 08:22 PM
So I found this new "toy" here at http://www.ircache.net/cgi-bin/cacheability.py -- basically, it reads your headers and tells you how caches are likely to handly your page.
I was under the impression that .shtml pages cache just like an .html page. However, the results I get for all of my .shtml pages read like this:
http://www.buffyguide.com/new/episodes.shtml
Expires[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Cache-Control[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Last-Modified[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
ETag[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Content-Length[nbsp][nbsp][nbsp][nbsp] - (actual size: 50546)[nbsp][nbsp]
Server[nbsp][nbsp] Apache/1.3.9 (Unix) mod_macro/1.1.1 PHP/3.0.15[nbsp][nbsp]
This object will be considered stale, because it doesn't have any freshness information assigned. It doesn't have a validator present. It doesn't have a Content-Length header present, so it can't be used in a HTTP/1.0 persistent connection.
And the .html pages return what seems to be a much better result:
http://www.buffyguide.com/episodes.html
Expires[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Cache-Control[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Last-Modified[nbsp][nbsp] 1 week 2 days ago[nbsp][nbsp](Wed, 22 Mar 2000 04:27:10 GMT) validated[nbsp][nbsp]
ETag[nbsp][nbsp] "fe8bc-5ad0-38d84b9e"
Content-Length[nbsp][nbsp] 22.7K (23248)[nbsp][nbsp]
Server[nbsp][nbsp] Apache/1.3.9 (Unix) mod_macro/1.1.1 PHP/3.0.15[nbsp][nbsp]
This object doesn't have any explicit freshness information set, so a cache may use Last-Modified to determine how fresh it is with an adaptive TTL (at this time, it could be, depending on the adaptive percent used, considered fresh for: 1 day 23 hr (20%), 4 days 22 hr (50%), 1 week 2 days (100%)). It can be validated with Last-Modified.
So, according to this thing anyway, my .shtml pages will not be caching. Why? Is there a way to make sure the Last Modified date is set? Do I need to use the mod_expires headers (which I toyed around with, but decided I'd rather not)?
------------------
---------------------------------
The Complete Buffy Episode Guide
www.buffyguide.com (http://www.buffyguide.com)
I was under the impression that .shtml pages cache just like an .html page. However, the results I get for all of my .shtml pages read like this:
http://www.buffyguide.com/new/episodes.shtml
Expires[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Cache-Control[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Last-Modified[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
ETag[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Content-Length[nbsp][nbsp][nbsp][nbsp] - (actual size: 50546)[nbsp][nbsp]
Server[nbsp][nbsp] Apache/1.3.9 (Unix) mod_macro/1.1.1 PHP/3.0.15[nbsp][nbsp]
This object will be considered stale, because it doesn't have any freshness information assigned. It doesn't have a validator present. It doesn't have a Content-Length header present, so it can't be used in a HTTP/1.0 persistent connection.
And the .html pages return what seems to be a much better result:
http://www.buffyguide.com/episodes.html
Expires[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Cache-Control[nbsp][nbsp][nbsp][nbsp] -[nbsp][nbsp]
Last-Modified[nbsp][nbsp] 1 week 2 days ago[nbsp][nbsp](Wed, 22 Mar 2000 04:27:10 GMT) validated[nbsp][nbsp]
ETag[nbsp][nbsp] "fe8bc-5ad0-38d84b9e"
Content-Length[nbsp][nbsp] 22.7K (23248)[nbsp][nbsp]
Server[nbsp][nbsp] Apache/1.3.9 (Unix) mod_macro/1.1.1 PHP/3.0.15[nbsp][nbsp]
This object doesn't have any explicit freshness information set, so a cache may use Last-Modified to determine how fresh it is with an adaptive TTL (at this time, it could be, depending on the adaptive percent used, considered fresh for: 1 day 23 hr (20%), 4 days 22 hr (50%), 1 week 2 days (100%)). It can be validated with Last-Modified.
So, according to this thing anyway, my .shtml pages will not be caching. Why? Is there a way to make sure the Last Modified date is set? Do I need to use the mod_expires headers (which I toyed around with, but decided I'd rather not)?
------------------
---------------------------------
The Complete Buffy Episode Guide
www.buffyguide.com (http://www.buffyguide.com)