Henrik, I am using the jersey REST client in Java and just setting the header: GET https://raw.github.com/jeroenh/AutoGOLE-Topologies/master/master.xml Accept: application/xml If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT I use the epoch for the first retrieve and then whatever was returned in the "Last-Modified" header. I have also started checking the version attribute in the <NSA> element for changes. Could you also make sure that only gets updated when there is a change, restart, etc.? I have copied the NSI list so NSA owners can also start implementing the optimizations when they have time. Please let me know when/if you get it done. Thanks, John On 2013-10-31, at 10:55 AM, Henrik Thostrup Jensen <htj@nordu.net> wrote:
On Thu, 31 Oct 2013, John MacAuley wrote:
I implemented the "If-Modified-Since" check within my topology discovery code. I need an NSA that actually supports the query.
You just need a client that supports it. curl works fine:
htj@scandium> curl -I http://scandium:4080/NSI/topology/aruba.net.xml HTTP/1.1 200 OK Date: Thu, 31 Oct 2013 14:53:59 GMT Last-Modified: Thu, 31 Oct 2013 14:52:22 GMT Content-Length: 2076 Content-Type: text/html Server: TwistedWeb/13.0.0
htj@scandium> htj@scandium> curl -I --header 'If-Modified-Since: Thu, 31 Oct 2013 14:52:23 GMT' http://scandium:4080/NSI/topology/aruba.net.xml HTTP/1.1 304 Not Modified Date: Thu, 31 Oct 2013 14:54:08 GMT Server: TwistedWeb/13.0.0
Does OpenNSA?
No, I've only implemented it service-side so far. Now that someone else supports I might get around to it.
Best regards, Henrik
Henrik Thostrup Jensen <htj at nordu.net> Software Developer, NORDUnet