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

Increase expiration of browser cache policy

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Not an issue
    • Neutral
    • None
    • None
    • None
    • Yes

    Description

      The property 'expirationMinutes' is set to 60 for resources and 10 for default. This is very short and causes the browser to reload the files unnecessarily.

      Google page insights rates this badly (see attachment) and suggests to set it to at least a week.
      https://developers.google.com/speed/docs/insights/LeverageBrowserCaching

      I suggest to increase the values in the default configuration to 10080 (one week).
      Here:

      • /modules/cache/config/contentCaching/defaultPageCache/browserCachePolicy/policies/resources@expirationMinutes
      • /modules/cache/config/contentCaching/defaultPageCache/browserCachePolicy/policies/default@expirationMinutes

      Test have shown that the files are served again from the server if they changed and the cache was cleared. So theres no need to keep the expiration low.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              pierre Pierre Sandrin
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 8m
                    8m