0

orbeon 3.70betaを実行していますが、キャッシュを回避する必要があります。特に、http応答で次の属性を返すために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"/>

しかし、私はまだ次のような応答を受け取っています:

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.

助けていただければ幸いです。

ありがとう、フランシスコ。

4

1 に答える 1

0

これらのプロパティはOrbeonForms4.0に追加されたため、3.7では機能しません。(3.7.1は3年以上前のものであり、使用している3.7.0betaビルドはおそらくさらに古いものです。)最善の策は、UrlRewriteFilterなどのサーブレットフィルターまたはApacheなどのフロントエンドHTTPサーバーを使用してこれを行うことです。

于 2012-07-21T16:26:00.953 に答える