On Fri, 2005-12-30 at 02:18 -0500, Doug Chestnut wrote:
> Is there any reason why we can't change the date_format in the
> pageEnvelopeModule (used to produce the document-lastmodified string) to
> this format:
> Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Hi Doug,
The date format used by lenya ("2005-12-30 04:43:11") follows the ISO
8601 standard, see e.g. [1].
Therefore I'd rather not change the format of the document-lastmodified
attribute provided by the page-envelope.
Maybe we could add another attribute document-lastmodified-rfc822 which
converts the date format s.t. it may be used for the reponse header?
Or write a date-converting input-module?
Or add the format as an additional parameter:
{page-envelope:document-lastmodified:iso8601}
{page-envelope:document-lastmodified:rfc822}?
WDYT?
Josias
[1] http://www.cl.cam.ac.uk/~mgk25/iso-time.html
>
> Currently, in 1.4, when a page is requested, the last_modified header is
> set (via the setheader action in the publications sitemap using the
> page-envelope:document-lastmodified string) in the wrong format and is
> ignored:
>
> bash-3.00$ wget -S
> http://lenya.zones.apache.org:9999/default/live/index.html
> --04:52:28-- http://lenya.zones.apache.org:9999/default/live/index.html
> => `index.html'
> Resolving lenya.zones.apache.org... 207.7.158.201
> Connecting to lenya.zones.apache.org[207.7.158.201]:9999... connected.
> HTTP request sent, awaiting response...
> 1 HTTP/1.1 200 OK
> 2 Date: Fri, 30 Dec 2005 04:52:28 GMT
> 3 Server: Jetty/5.1.4 (SunOS/5.10 x86 java/1.4.2_09
> 4 X-Cocoon-Version: 2.1.9-dev
> 5 Expires: Thu, 01 Jan 1970 00:00:00 GMT
> 6 Set-Cookie: JSESSIONID=2bebakmnkkllx;Path=/
> 7 Last-Modified: 2005-12-30 04:43:11
> 8 Vary: User-Agent
> 9 Content-Type: text/html; charset=utf-8
> 10 Content-Length: 3016
> 11 Connection: keep-alive
>
> 100%[====================================>] 3,016 --.--K/s
>
>
> Last-modified header invalid -- time-stamp ignored.
> 04:52:29 (28.76 MB/s) - `index.html' saved [3016/3016]
>
>
> Perhaps there is a better place for the header to be set?
>
> --Doug
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]