Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-74452

Default value for browser cache properties conflicts with aggressive caching proxies and load balancers


    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: 7.0.X EE, Master
    • Fix Version/s: Master
    • Labels:


      The following portal properties both default to false.

          # Set this to true if you want the portal to force the browser cache to be
          # disabled. It will only disable the cache for the rendered HTML response.
          # It will not have an impact on static content or other resources.
          # Set this true if you want to disable the cache for authenticated users.
          # This property is not read when the property
          # "browser.cache.signed.in.disabled" is true. This is useful to ensure that
          # authenticated users cannot go to the sign in page by clicking on the back
          # button in their browsers.

      This can cause problems for aggressive caching proxies that prefer to cache content whenever the cache control headers are missing. These default values also run counter to the overall goal for Liferay to assist with personalization (including for guest users), as the content would have already been cached by these proxies and thus all guest users see the same content.

      To avoid the problem where simply switching the header may be too late, as the content has already been cached, we should change the default values to true and allow end users in future releases to switch it to false.


          Issue Links



              • Votes:
                1 Vote for this issue
                3 Start watching this issue


                • Created:


                  Version Package