Herman Reintke wrote: > Raphaël, > > I do not have specific ideas/requirements on caching. I noticed the > behaviour of the binary distribution and reported it on the list. >
OK. I thought you had a specific use case in mind. > On your solution, I think not only *.psml pages need the no-cache > directive. I see also requests coming to for example /jetspeed/, > /jetspeed/portal, /jetspeed/portal/administrative. > Looks like requests to a "directory" in which, based on the psml, and > logged in user the page is build. These page should not be cached either. > > But.., If you can define a generic way which URI should and should not > be cached, it seems possible. > I guess as long as you want to cache based on URI, mod_header/mod_expires is the most flexible option, for example using something like below which should prevent pages from being cached but no media documents. # Should match any URI with either a .psml extension or no extensions: # All these should match: # /jetspeed/ # /jetspeed/portal/ # /jetspeed/portal/news.psml <LocationMatch ^/jetspeed/(.*/[^.]*|.*\.psml)?$> Header set Cache-Control no-cache </LocationMatch> # Optionally, set a 1 week expire on media objects ExpiresActive on ExpiresByType image/gif A604800 ExpiresByType image/jpeg A604800 ExpiresByType image/png A604800 ExpiresByType text/css A604800 ExpiresByType application/x-javascript A604800 -- Raphaël Luta - [EMAIL PROTECTED] Apache Portals - Enterprise Portal in Java http://portals.apache.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
