Actions
Feature #33530
closedadd attribute @last-modified on element <view>
Start date:
06/06/2018
Due date:
% Done:
100%
Estimated time:
Description
This attribute will expect a XPath expression that returns a timestamp.
When this optional attribute is missing, default value will depend on the view:- if the view is cached, then the default timestamp will be the last refresh date of the cache.
- else the default timestamp will be current date.
This timestamp will be used by the service layer to fill the Last-Modified HTTP header, using the date format described on this page: [[https://developer.mozilla.org/fr/docs/Web/HTTP/Headers/Last-Modified]].
Example usage for CMDB use-case:<view name="query" xmlns:date="http://exslt.org/dates-and-times" last-modified="date:seconds(date:parse-date(view_path('status', "/jmx/domain/group/mbean[@name='neo4j-populate']/attribute[@name='LastBuildDate']/value/text()"), 'EEE MMM dd HH:mm:ss z yyyy'))*1000"/>
Actions