Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4979

Allow caching of theme.css files for admin and client area

    Details

      Description

      Under Settings > Company > Look and Feel you can set a color theme, and change colors, etc. The theme is loaded in structure for both the admin and client areas. For example:

      <link href="/admin/theme/theme.css?dir=" rel="stylesheet" type="text/css" media="screen" />
      <link href="/client/theme/theme.css?dir=" rel="stylesheet" type="text/css" media="screen" />

      Every page load Blesta does a query and fetches the theme data and builds the CSS file and sends it to the browser. However, this not an insignificant amount of overhead. Rather, the CSS files should be able to be cached by the browser. They may be sending a no-cache header. Ideally, we should set a version or hash in the URL after theme.css like theme.css?ver=12345678 and allow the browser to cache. Then, if the theme is changed in any way (select new theme or change colors and save a theme) the version would be updated and the browser would know to download and cache the new version.

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Fix Version/s 5.10.0-b1 [ 11905 ]
        admin Paul Phillips made changes -
        Assignee Jonathan Reissmueller [ jonathan ]
        admin Paul Phillips made changes -
        Rank Ranked higher
        admin Paul Phillips made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.10.0 Sprint 1 [ 188 ]
        abdy Abdy Franco made changes -
        Assignee Jonathan Reissmueller [ jonathan ] Abdy Franco [ abdy ]
        abdy Abdy Franco made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 1 hour, 15 minutes [ 4500 ]
        Worklog Id 16705 [ 16705 ]
        abdy Abdy Franco made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.10.0 Sprint 1 [ 188 ] 5.10.0 Sprint 1, 5.10.0 Sprint 2 [ 188, 189 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.10.0 Sprint 1, 5.10.0 Sprint 2 [ 188, 189 ] 5.10.0 Sprint 1, 5.10.0 Sprint 2, 5.10.0 Sprint 3 [ 188, 189, 190 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.10.0 Sprint 1, 5.10.0 Sprint 2, 5.10.0 Sprint 3 [ 188, 189, 190 ] 5.10.0 Sprint 1, 5.10.0 Sprint 2, 5.10.0 Sprint 3, 5.10.0 Sprint 4 [ 188, 189, 190, 191 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              5/Apr/24

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour, 15 minutes
              1h 15m

                Agile