Jump to content

Erase Cached CSS


SMARAM

Recommended Posts

Hi, is there a way to force the cached CSS to update?

I would like to create something that when user log on my application, the application reload the cached css without manually pressing Ctrl+F5.

Best regards.

Link to comment
Share on other sites

1 minute ago, Sherzod said:

Hi, 

Sorry, can you please explain what you wanted ? 

I'm changing theme like theme-neptune-all_1.css

I would like the appplication could automatically reload css but it's using the cached css.

 

Link to comment
Share on other sites

15 minutes ago, SMARAM said:

I'm changing theme like theme-neptune-all_1.css

I would like the appplication could automatically reload css but it's using the cached css.

 

Sorry, I do not understand the sequence of your actions.
How and when do you change the theme?

Link to comment
Share on other sites

9 minutes ago, Sherzod said:

Sorry, I do not understand the sequence of your actions.
How and when do you change the theme? 

1) I'm changing the file "ext\build\classic\theme-neptune\resources\theme-neptune-all_1.css" with notepad.

2) deploy the file to server

3) restart IIS

4) open website on user's computer.

5) CSS is not loaded because it's cached.

6) Need to press Ctrl + F5 to reload CSS (I would like to not press Ctrl + F5 to reload CSS).

Edited by SMARAM
Link to comment
Share on other sites

3 minutes ago, SMARAM said:

1) I'm changing the file "ext\build\classic\theme-neptune\resources\theme-neptune-all_1.css" with notepad.

2) deploy the file to server

3) restart IIS

4) open website on user's computer.

...

I think that it is not the right approach...

Link to comment
Share on other sites

  • 4 weeks later...

I found a solution that I found on another topic.

The files are different since my version (Ext 6.5).

1) On directory ext\build\classic, copy directory theme "theme-neptune" (that's my custom theme) as "theme-neptune2" for example.

2) Inside this directory, rename file "theme-neptune.js" to "theme-neptune2.js"

3) Inside directory ext\build\classic\theme-neptune2\resources, rename file "theme-neptune-all.css" to "theme-neptune2-all.css"

4) On your project, go to MainModule and change property Theme to "neptune2"

That's all. No need to tell your users to delete cache on browser.

  • Like 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...