Merge lp:~andrea.corbellini/lazr.restful/fix-375353 into lp:lazr.restful
Proposed by
Andrea Corbellini
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Francis J. Lacoste | ||||
Approved revision: | 40 | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~andrea.corbellini/lazr.restful/fix-375353 | ||||
Merge into: | lp:lazr.restful | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp:~andrea.corbellini/lazr.restful/fix-375353 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis J. Lacoste (community) | Approve | ||
LAZR Developers | Pending | ||
Review via email: mp+6892@code.launchpad.net |
To post a comment you must log in.
Here's my attempt to fix bug 375353.
This branch adds a new method annotator (cache_for) that allows to specify how much seconds the response should be cached by the browser. BaseResourceOpe rationAdapter. call() then sets the correct Cache-control HTTP header.
Note that Cache-control is not supported by HTTP/1.0 clients: www.w3. org/Protocols/ rfc2616/ rfc2616- sec14.html# sec14.9
http://