Developer forum

Forum » Swift » CSS decorations cached for too long

CSS decorations cached for too long

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

It seems that CSS decorations are cached for too long and are not updated when the decoration is changed or other pages like branding or themes are saved.

Steps:

1. Open Swift tools | Designs | CSS and add a new decoration
2. As the CSS, enter: * { color: red; }
3. Save and close
4. Browse the frontend and backend and notice how most things are now red
5. Delete the decoration

Expected outcome:
- Removing the decoration removes its CSS from the custom styles document. The browser no longer shows everything in red.

Actual outcome
- The CSS remains, and everything remains red. Saving Branding, Themes or the CSS container page seems to have no effect.


Replies

 
Martin Ottesen
Martin Ottesen
Reply
This post has been marked as an answer

Hi Imar, 

Do you "Preview" the CSS page after you have saved your decorations? Im pretty sure this initializes the rebuild of the CSS.

Thats what i usually do, i create my CSS, save it and then i preview the CSS page.

 

 

BR
- Martin

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks, that seems to have done it for now.

Imar

 

You must be logged in to post in the forum