Ticket #322 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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.

Change History

comment:1 follow-up: ↓ 2 Changed 3 years ago by jgou

(In [1534]) use reslet api to set caching header because directly adding such "supported" headers are now forbidden in restlet ; see #322

comment:2 in reply to: ↑ 1 Changed 3 years ago by gdb

Replying to jgou:

(In [1534]) use reslet api to set caching header because directly adding such "supported" headers are now forbidden in restlet ; see #322

Problem solved.
Issue can be closed.

comment:3 Changed 3 years ago by jgou

  • Status changed from new to closed
  • Resolution set to fixed

thanks for testing
issue fixed in [1534]

Note: See TracTickets for help on using tickets.