Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-23628

Add Property To Force Cache Reloading of Static Head Files in the Portal Markup and support CDNs

    Details

    • Property addition/change required:
      Yes

      Description

      Teach the portal about CDNs. Introduce three new properties (yay!)

      1. No trailing slash on the path
        portal.cdn.path=http://nightly2.sakaiproject.org:8085
        portal.cdn.version=12345
        portal.cdn.expire=10

      The path is a path to a CDN host that replicates your /portal and /library at a minimum. This should not have a trailing slash. If you are using skin.repo, you should prefix skin.repo with the URL of the CDN.

      The version is a number you can change any time to force a re-download. This simply adds a query parameter to all the javascript and css downloads.

      The expire is a number of seconds. This adds an expire= a query parameter to all the javascript and css downloads that is the current time divided by the expire value.

      Of course expire and version only affect browsers and tell the browsers to grab a fresh copy. The CDN may or may not have said fresh copy. You can use version and expire without path. In that case all files come from your Sakai instance and version / expire tell browsers to reload new copies of CSS and skin files. You might find it quite useful to change the version value if you upload new skins to your production Sakai.

      The version and expire values apply to URLs constructed from skin.repo so you can force browser reload of those files as well by setting expire or changing version.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  csev Charles Severance
                  Reporter:
                  csev Charles Severance
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration