Matthieu Estrade wrote: > Bart van der Schans a écrit : >> Matthieu Estrade wrote: >> > It could be great to do it by type, but it can have a big side effect. > Usually, resources not identified by extension are resources delivering > content based on dynamic information. > If these dynamic information are not in the query string, it's > definitively dead to do caching on this resource. > > ex: > > script.php?action=gimme_pdf will return a pdf content > Cookie: phpsessionid=JKHdheehKJHEDJKHhe > > script.php?action=display_my_account return html. > Cookie: phpsessionid=6537656356753 AFAIK you can set the mime type with the php script. Sending different content with the same URL makes it a lot harder to cache.
> IMHO, a regexp based cache enable or disable could be very usefull for a > default caching policy shipped with httpd. > We could do per default caching only on all images, css and all static > content. It would be useful to be able to match caching on something like "/.+/images/.+" Bart