How to make dispatcher cache response headers

The /cache section controls how Dispatcher caches documents. Configure settings to implement your caching strategies:

Environment

Dispatcher 4.1.11 onwards

Steps

Response header caching is enabled with a new setting /headers in the /cache setting. The sample dispatcher.any in the distribution package contains a commented sample:

   # Cache response headers next to a cached file. On the first request to
      # an uncached resource, all headers matching one of the values found here
      # are stored in a separate file, next to the cache file. On subsequent
      # requests to the cached resource, the stored headers are added to the
      # response.
      #
      # Note, that file globbing characters are not allowed here.
      #
      #/headers
      #  {
      #  "Cache-Control"
      #  "Content-Disposition"
      #  "Content-Type"
      #  "Expires"
      #  "Last-Modified"
      #  "X-Content-Type-Options"
      #  }

 Adobe

更快、更轻松地获得帮助

新用户?