Project

General

Profile

Actions

Feature #33530

closed

add attribute @last-modified on element <view>

Added by Reynaud Sylvain over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Engine
Target version:
-
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', &quot;/jmx/domain/group/mbean[@name='neo4j-populate']/attribute[@name='LastBuildDate']/value/text()&quot;), 'EEE MMM dd HH:mm:ss z yyyy'))*1000"/>
Actions

Also available in: Atom PDF