MODX Community

How to reload css

Hi there!
I added some stuff to my css, but it seems like it is not loading. Maybe something with cache?
Any idea how I can force a css reload?
Best
Rafael

You can try first to hard refresh your site In your browser:
e. g. Ctrl + F5 in Firefox, Shift + F5 or Ctrl + Shift + R in Chrome

If this doesn’t help:

  1. Go to Manage -> Clear Cache
  2. Hard refresh your site In your browser again

or

  1. Delete the Cache folder in your Core directory manually
  2. Hard refresh your site In your browser again

@vibedesign thanks a lot! Works!

1 Like

Another way that will work for site visitors, and you as well, is to add a cache-busting parameter at the end of the URL for your CSS:

path/to/cssfile.css?x=1

Whenever you make changes to the CSS, change the number at the end of the URL. Then any browser will load a fresh version of the CSS file.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.