2012-07-20 2 views
0

orbeon 3.70beta를 실행 중이므로 캐시를 피할 필요가 있습니다.Orbeon 캐시 헤더

Cache-Control=max-age=0 
Pragma=no-cache 
Expires=0 

내가 properties.xml에이 속성을 시도 :

<property as="xs:string" 
     name="oxf.http.page.cache-headers" 
     value="Cache-Control: max-age=0; Pragma: no-cache; Expires: 0"/> 

<property as="xs:string" 
     name="oxf.http.resource.cache-headers" 
     value="Cache-Control: max-age=0; Pragma: no-cache; Expires: 0"/> 

을하지만 여전히이 같은 반응을 얻고있어 특히 나는 다음과 같은 속성 HTTP 응답에 반환 orbeon이 필요합니다 :

Cache-Control:public 
Content-Language:en-US 
Content-Length:772 
Content-Type:text/html; charset=utf-8 
Date:Fri, 20 Jul 2012 13:14:18 GMT 
Expires:Fri, 20 Jul 2012 13:14:18 GMT 
Last-Modified:Fri, 20 Jul 2012 13:00:51 GMT 
Pragma: 
Server:WebSphere Application Server/6.1 

Note: 
Also I add a filter in the web.xml and add the compiled filter but it 
seems that orbeon is overriding the cache headers in some point. 

Note2: 
I already override the cache headers on other application (using a filter) in the 
same websphere and the headers are successfully overridden. So the Websphere 
is not the problem. 

도움을 많이 주셔서 감사합니다.

감사합니다. 시스코.

답변

0

이러한 속성은 Orbeon Forms 4.0에 추가되었으므로 3.7에서는 작동하지 않습니다. (3.7.1은 3 살 이상이며 사용하는 3.7.0 베타 빌드는 더 오래 될 것입니다.) 가장 좋은 방법은 UrlRewriteFilter과 같은 서블릿 필터 나 Apache와 같은 프론트 엔드 HTTP 서버를 사용하는 것입니다.

+0

안녕하세요! 답장을 보내 주셔서 감사합니다. ** 필자는 필터를 사용할 수 없다고 생각합니다 ** 그리고 작동하지 않았습니다. 처리 전에 필터를 넣으면 orbeon이 해당 매개 변수를 무시하고 orbeon이 이미 클라이언트에 헤더를 플러시하고 오류 메시지가 표시됩니다. 내가 뭔가를 놓치고 있다고 생각하니이 접근법을 사용할 수 있습니까? ** 4.0에 대한 업데이트로 이동하여 3.7 버전과 호환됩니다. :) 대단히 감사합니다! – panox

+0

orbeon 4.0에는 property.xml이없고 orbeon 3.7에는 없습니다. 이것은 행동에 영향을 줄 것입니까? 3.7에 정의 된 속성을 4.0에 포함시키는 것이 좋습니다. 이전 버전과의 호환성을 유지합니다. – panox

+0

당신이 찾고있는 것은'properties-local.xml'입니다. [doc] (http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties)를 참조하십시오. – ebruchez