Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1207

Correct RESTCONF cache control metadata

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 7.0.0
    • restconf-nb

    Description

      We are not emitting Cache-Control field when responding producing a response, but we are required to do so.

      Furthermore we are faking ETag header based on schema, which is entirely incorrect, as it does not reflect the content of the datastore.

      We are also producing Last-Modified header indicating the resource was modified at the time the request has completed in a format not compatible with HTTP.

      Finally, we are producing these headers only for GET request on /data, but not in POST or PUT.

      Correct this by:

      1. always emitting Cache-Control: no-cache
      2. delegating the responsibility for ETag/Last-Modified to a particular RestconfStrategy

      As part of this change we will not generate these headers, but define the APIs so that individual strategies can provide them, subject to subsequent improvements.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: