cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide <>
Subject Pipeline Caching
Date Tue, 27 Jan 2004 08:30:05 GMT
Hi, i've a question about caching; I've this pipeline:

<map:match pattern="admin">
	<map:act type="auth-protect">
		<map:parameter name="handler" value="navigation"/>
		<map:select type="parameter">
   		<map:parameter name="parameter-selector-test" 
   			<map:when test="admin">
   				<map:generate src="content/adminareatemp.xml"/>
				<!--<map:parameter name="use-request-parameters" value="true"/>-->
				<!--<map:generate type="jsp" src="jsp/admin_main.jsp"/>-->
				<!--<map:transform src="style/admin_main_html.xsl"/>-->
				<map:serialize type="xml"/>
  				<map:generate src="content/usertemp.xml"/>
  				<map:serialize type="xml"/>

This pipeline verify if the user role is admin(with the parameter 
selector), then if true enters in an admin area, else returns an  error 
message. It works, but often (maybe because browser caches the page) i get 
a wrong response: for example i'm admin and it returns error, or i'm normal 
user and it returns the admin page. By refreshing the page in the browser 
it returns ok. So i'd like to make this pipeline not cacheable so that 
every time the browser requests it and the control on the user role is 
performed. How to do??

Best Regards, Davide

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message