[TYPO3-dev] Website optimization with cache expiration

Philipp Gampe phil at philippgampe.info
Fri Jun 5 14:57:59 CEST 2009


why dont you try this one?

<FilesMatch "\.(gif|png|jpg)$">
	<IfModule mod_expires.c>
		ExpiresActive on
		ExpiresDefault "access plus 7 days"
	</IfModule>
	FileETag MTime Size
</FilesMatch>

it is the content of one of the _.htacces files which are in the package  
several times

hope it will help you

Cheers Phil



Am 05.06.2009, 14:24 Uhr, schrieb Sebastian Gebhard  
<s.gebhard at markenmotiv.de>:

> Hi *,
>
> I tested my TYPO3 site with the new Google Page Speed (or I tested Page  
> Speed with my TYPO3 site, just how you want) and it claimed that all my  
> graphics are missing a cache expiration.
>
> This applies to files from fileadmin/ just like for generated files in  
> typo3temp/.
>
> For testing in typo3temp/pics/ I created a .htaccess file:
>
> ExpiresActive On
> ExpiresByType image/gif A3592000
> ExpiresByType image/png A3592000
> ExpiresByType image/jpg A3592000
>
> But Page Speed still claims that it has no cache expiration.
>
> Taking a look at the Network module of Firebug confirms this:
>
> Response-Header
> Date Fri, 05 Jun 2009 12:19:27 GMT
> Server HTTPD
> Last-Modified Fri, 05 Jun 2009 09:01:38 GMT
> Etag "994ac-2713-46b9623e02080"
> Accept-Ranges bytes
> Content-Length 10003
> Keep-Alive timeout=5, max=92
> Connection Keep-Alive
> Content-Type image/jpeg
>
> What's wrong with my .htaccess file?



-- 
I never knew how good Opera is as a newsreader! Try it!
(used Thunderbird and Evolution before)




More information about the TYPO3-dev mailing list