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

Spring should set headers and version on assets based on portal controlled options

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Awaiting Review
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 21.0 [Tentative]
    • Fix Version/s: None
    • Component/s: Global, Portal
    • Labels:
      None
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      Spring should be setting headers for assets based on configuration coming from portal properties.

      Something like the following could be employed:

      @Override
      public void addResourceHandlers(ResourceHandlerRegistry registry) {
          registry.addResourceHandler("/resources/**")
                  .setCacheControl(CacheControl.maxAge(365, TimeUnit.DAYS))
                  .addResolver(new VersionResourceResolver().addContentVersionStrategy("/**"));
      } 

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  ern Earle R Nietzel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Git Integration