Skip to content

Conversation

@st3iny
Copy link
Member

@st3iny st3iny commented Aug 7, 2024

  • Resolves: #

Summary

Due to the new design, many css variables changed. However, the cache buster value does not increase on Theming/Nextcloud upgrades which causes old theming stylesheets to remain cached. Thus, some apps on the Nextcloud instance look broken after an upgrade (to 30) until the cache is cleared.

How to reproduce?

  1. Clear browser data, open dev tools and make sure to enable caching.
  2. Install Nextcloud stable29 and Calendar stable4.7.
  3. Disable debug mode in config.php!
  4. Navigate to Calendar.
  5. Upgrade Nextcloud to master and Calendar to main.
  6. Upgrade your Nextcloud instance using occ.
  7. Navigate to Calendar in a new tab.
  8. Observe broken styling.
  9. Clear cache and reload Calendar.
  10. Observe working styling.

Between steps 7 and 9 you can also observe that the content of theming stylesheets changes but not their cache buster hash (?v=[...]).

Checklist

@st3iny st3iny added this to the Nextcloud 30 milestone Aug 7, 2024
@st3iny st3iny self-assigned this Aug 7, 2024
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@AndyScherzinger AndyScherzinger added high feature: caching Related to our caching system: scssCacher, jsCombiner... labels Aug 7, 2024
@st3iny st3iny force-pushed the fix/theming/cache-buster-on-upgrade branch from 8596b91 to 087f748 Compare August 7, 2024 07:48
@st3iny st3iny enabled auto-merge August 7, 2024 07:49
@st3iny st3iny added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Aug 7, 2024
@st3iny
Copy link
Member Author

st3iny commented Aug 7, 2024

/backport to stable28

@st3iny
Copy link
Member Author

st3iny commented Aug 7, 2024

/backport to stable29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: caching Related to our caching system: scssCacher, jsCombiner... feature: theming high

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

6 participants