Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-294

Expand options for browser cache control headers

    XMLWordPrintable

Details

    • Yes
    • Yes
    • DevX 45
    • 5
    • Yes

    Description

      I'd like to be able to configure different cache control responses.

      Examples

      Cache-Control value Description
      max-age=86400 For up to one day (60 seconds x 60 minutes x 24 hours), the response can be cached by browsers and intermediary caches.
      private, max-age=600 Browsers can cache responses for 60 seconds (but not intermediary caches) for up to 10 minutes.
      public, max-age=31536000 Any cache can store the response for 1 year.

      Notes
      Currently I only have control over the expiration (max-age). The value public is hard coded. Add a configuration option where public is the default but can be changed to one of the other options.

      Documentation
      Show how to use the configuration option. Mention the default. If possible, show how to change the values based on request rules.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                dai.ha Dai Ha
                rgange Richard Gange
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 3h
                      3h