Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#540: Incorrect last-modified header field value in index.php and image.php

Sorry, but I have to re-open this bug.

Using

header('Last-Modified: ' . gmdate('r'));

results in

Last-Modified:Sun, 06 Feb 2011 10:47:33 +0000

which is wrong, but using

header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');

results in

Last-Modified:Sun, 06 Feb 2011 10:48:51 GMT

which is correct.

As far as I was aware, you can use either numerical or named timezones for the Last Modified header, considering +0000 is the same as GMT anyway.

Can you show anything to prove this otherwise?

The RFC states GMT, but I can’t find evidence (either for or against) whether +0000 is translated to GMT by the browser or not.

Regardless, we’ve got bigger fish to fry, so for the sake of consistency, fixed in this commit

It should be fixed in JIT (image.php) as well! Thanks.

[EDIT]: Created a new issue for the JIT extension so it won’t be overseen.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details