We are using the servletcache to cache request / response combinations for our webservices, so if an exactly similar XML is sent a second time as a request to us, the cache will send back the exact same response as previously.
However, sometimes our response contains an <Error>-element. If this element is present, we do not want the request / response to be cached.
And so far, we have only found ways to configure cachespec.xml to cache according to the request, for example the below configuration caches if there is a <Load>-element in the request.
<component id="" type="serviceOperation">
<component id="Load" type="serviceOperationParameter" />
<component id="Hash" type="SOAPEnvelope" />
Pinned topic Configure cachespec.xml (servletcache) to cache according to response
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-10-12T07:45:27Z at 2012-10-12T07:45:27Z by SystemAdmin
SystemAdmin 110000D4XK37422 Posts
Re: Configure cachespec.xml (servletcache) to cache according to response2012-10-12T07:45:27ZThis is the accepted answer. This is the accepted answer.Perhaps I should have asked my question aswell :)
Do you know of any way to avoid caching if the response contains a specific element, for example an <Error>-element?