[TYPO3-dev] Using CDN with Typo3
Dmitry Dulepov
dmitry at typo3.org
Wed Jan 14 21:17:54 CET 2009
Hi!
John Angel wrote:
> The idea is to put Expires header to access+10 years for Typo3 image directories where files are never being deleted.
>
> When deleting image from Page module in BE, Typo3 actually removes such image from /uploads/pics directory, so this directory cannot be set to Expire in 10 years. The reason is simple - editor can then upload the image with the same name, resulting in inappropriate output, since browser doesn't make Apache request for such image.
This is what ETag + Cache-control:must-revalidate are supposed to handle. This combination of server headers must trigger If-modifed-since or If-none-match client headers with appropriate response from the server (not modified or 200 OK). But FireFox, for example, is very bad in this area. It almost never sends these headers. It either caches them until they expire or always fetches them. There is no reliable solution for all browsers :(
> But it seems to me that Typo3 never deletes images from /typo3temp/pics, so this could be candidate for 10 years expire time?
Names there are random, so you can safely have 10 years there.
--
Dmitry Dulepov
TYPO3 core team
Mr. Harris: People say that you were the last person to speak with Jordon...
Is that true?
Cameron: I don't know. Are you asking me if people say I was the last person
to talk to Jordon? Or are you asking me if I was the last person
to talk to her?
Mr. Harris: I guess I'm asking if you were.
Cameron: I don't know.
More information about the TYPO3-dev
mailing list