[BUGFIX] Make generated thumbnails browser-cachable
authorDmitry Dulepov <dmitry@typo3.org>
Wed, 23 Nov 2011 13:50:53 +0000 (15:50 +0200)
committerXavier Perseguers <xavier@typo3.org>
Tue, 16 Oct 2012 09:50:02 +0000 (11:50 +0200)
commit11b896da08998be69b7397c7d5f0aef45dab57d0
tree93b03ea0811d41f1d2db9c9809b8f55f81ea4456
parentcfb6838273ba13b4df93a4855f27914cb7eda73f
[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: Icb32ca8fbde91dffa65b835ac9c0954f3f5da53f
Fixes: #21481
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/12820
Reviewed-by: Philipp Gampe
Reviewed-by: Marcus Schwemer
Reviewed-by: Wouter Wolters
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
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