[BUGFIX] Make generated thumbnails browser-cachable
authorDmitry Dulepov <dmitry@typo3.org>
Wed, 23 Nov 2011 13:50:53 +0000 (15:50 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Wed, 7 Mar 2012 07:27:00 +0000 (08:27 +0100)
commit630e17650e80ca365418fd6b806acf7a23ede729
treea2b044aac1504d2c888c15a63a8ffd53862a6b64
parent072a13c9b2a296f02278f8e03a3ef85c29a183f1
[BUGFIX] Make generated thumbnails browser-cachable

Thumbnail generation code appends current timestamp in each
invocation of the thumbnail generation script. This is useless
because it prevents caching. Removing this timestamp will not
cause any issues with old vs new versions because the URL
includes an md5 checksum of the file size and file timestamp.
So when the file is updated, the md5 sum will change. The
patch also changes short md5 to full md5.

Additionally proper last-modified, expires and etag headers
are sent.

Change-Id: I852e6d8c4a2626c167fa4ea380874b46f17112ca
Fixes: #21481
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/6876
Tested-by: Tolleiv Nietsch
Reviewed-by: Stefan Neufeind
Reviewed-by: Oliver Klee
Reviewed-by: Tolleiv Nietsch
Tested-by: Stefan Neufeind
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
t3lib/class.t3lib_befunc.php
t3lib/thumbs.php
typo3/class.file_list.inc
typo3/show_item.php
typo3/sysext/cms/tslib/class.tslib_content.php