Patch for entries_cache_meta plugin (meta values)

UPDATE 2023-03-27: This page is obsolete, as it refers to a prior version of this blog. However, it may be of historical interest. I’ve been using the entries_cache_meta plugin by Jason Thaxter, mainly for the convenience of specifying the modification date within the entry file. After a while I decided I’d like to also use its “meta” capability, i.e., the ability to specify arbitrary variables in the entry header along with the modification time, e.g., ...

2005-01-17 · 3 min · Frank Hecker

Enforcing proper use of trailing slashes

UPDATE 2023-03-27: This page is obsolete, as it refers to a prior version of this blog. However, it may be of historical interest. I’ve previously blogged about my canonicaluri plugin that checks to see whether the requested URI is in the canonical form for the type of page being requested, and if necessary does a browser redirect to the canonical form of the URI. However the canonicaluri plugin may be overkill for some people, for example, it presumes use of the extensionless plugin, so that canonical URIs for individual entries do not have file extensions for the default flavour. A simpler alternative to the canonicaluri plugin is the slashredir plugin, which only enforces proper usage regarding trailing slashes. ...

2005-01-11 · 2 min · Frank Hecker

Patch for atomfeed plugin (“modified” element for feed)

UPDATE 2023-03-27: This page is obsolete, as it refers to a prior version of this blog. However, it may be of historical interest. The “official” atomfeed plugin does not generate valid feeds for the current version (0.3) of the Atom specification because the output does not have a “modified” element for the feed as a whole, just “modified” elements for each story. Obviously the modification date/time for the feed can be interpreted as the date/time modified of the most recent story, so then it’s just a matter of generating the proper output for the MODIFIED tags. ...

2005-01-09 · 2 min · Frank Hecker

The lastmodified2 plugin

UPDATE 2023-03-27: This page is obsolete, as it refers to a prior version of this blog. However, it may be of historical interest. In a previous post I discussed the general problem of validating and caching dynamic content. In order to implement the strategy outlined in that post I decided to create a new version of the lastmodified plugin originally created by Bob Schumaker. The lastmodified plugin was a good base to build on; however it didn’t do exactly what I wanted to do, and hence I couldn’t resist trying to improve on it. ...

2005-01-09 · 23 min · Frank Hecker

Validating and caching dynamic content

UPDATE 2023-03-27: This page is obsolete, as it refers to a prior version of this blog. However, it may be of historical interest. One of the things I enjoy about setting up my own blog with the Blosxom software is learning about the deep details of web protocols and formats that I’ve never worried about before. (This might have been the case if I’d used another blogging system, but the hackable nature of Blosxom inspires, nay, almost demands it.) Lately I’ve been educating myself about HTTP conditional GET requests and validation and caching of dynamically-generated content. ...

2005-01-09 · 14 min · Frank Hecker