SMARAM Posted October 8, 2018 Share Posted October 8, 2018 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2018 Share Posted October 8, 2018 Hi, Sorry, can you please explain what you wanted ? Quote Link to comment Share on other sites More sharing options...
SMARAM Posted October 8, 2018 Author Share Posted October 8, 2018 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2018 Share Posted October 8, 2018 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? Quote Link to comment Share on other sites More sharing options...
SMARAM Posted October 8, 2018 Author Share Posted October 8, 2018 (edited) 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 October 8, 2018 by SMARAM Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2018 Share Posted October 8, 2018 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... Quote Link to comment Share on other sites More sharing options...
SMARAM Posted October 8, 2018 Author Share Posted October 8, 2018 Just now, Sherzod said: I think that it is not the right approach... Suggestions? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2018 Share Posted October 8, 2018 In any case, you can open a request in support portal Quote Link to comment Share on other sites More sharing options...
SMARAM Posted October 8, 2018 Author Share Posted October 8, 2018 2 minutes ago, Sherzod said: In any case, you can open a request in support portal Ok, thank you. I'm going to do that. Quote Link to comment Share on other sites More sharing options...
SMARAM Posted October 9, 2018 Author Share Posted October 9, 2018 16 hours ago, SMARAM said: Ok, thank you. I'm going to do that. This is what i'm looking to do. https://stackoverflow.com/questions/32414/how-can-i-force-clients-to-refresh-javascript-files?rq=1 I'm waiting for my IT to send me the user and psw to open the ticket. Quote Link to comment Share on other sites More sharing options...
SMARAM Posted November 6, 2018 Author Share Posted November 6, 2018 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.