Ticket #322 (closed defect: fixed)
Caching directives are ignored
| Reported by: | jgou | Owned by: | jgou |
|---|---|---|---|
| Priority: | major | Milestone: | 0.4 |
| Component: | < Misc | Version: | |
| Keywords: | Cc: | kauri-discuss@… |
Description
spotted by gdb
Since the restlet upgrade #313 , warnings regarding caching appear in the logging, e.g.
[qtp17512522-38] WARN org.restlet.KauriComponent.LogFilter - Addition of the standard header "Cache-Control" is not allowed. Please use the equivalent property in the Restlet API. [qtp17512522-40] 08:19:31,608 WARN HeaderUtils:260 - Addition of the standard header "Cache-Control" is not allowed. Please use the equivalent property in the Restlet API. [qtp17512522-40] WARN org.restlet.KauriComponent.LogFilter - Addition of the standard header "Cache-Control" is not allowed. Please use the equivalent property in the Restlet API. [qtp17512522-38] 08:19:31,610 WARN HeaderUtils:260 - Addition of the standard header "Cache-Control" is not allowed. Please use the equivalent property in the Restlet API.
This leads to the caching directives being ignored. This can be fixed by using the CacheDirective restlet API instead of adding headers directly.
Note: See
TracTickets for help on using
tickets.
(In [1534]) use reslet api to set caching header because directly adding such "supported" headers are now forbidden in restlet ; see #322