You need to sign in to do that
Don't have an account?
Gopala Kovilur
Changes to static resource file not getting applied immediately or consistently
In my Dev Org, I downloaded a static resource (as zip), changed the css in it and upload back the static resource successfully. All I did was change value of a "max-height" style attribute from X value to Y.
Post I upload the updated static resource file, the updated style value is NOT applied immediately. Using Developer Toolbar, when I check the style, it still shows the old value for the style attribute.
In Chrome, the .scss file (I guess generated dynamically from .css file) does not have updated style value. Is there any SFDC background job/process that converts .css file to .scss file? If so, how do we make it take this updated style immediately?
To reflect the change, sometimes it takes a day . Sometimes its 15-20 minutes. Sometimes it does not get applied at all. This behavior is shown across Chrome, FireFox, Edge, IE and on Android phone.
What step am I missing here ?
Post I upload the updated static resource file, the updated style value is NOT applied immediately. Using Developer Toolbar, when I check the style, it still shows the old value for the style attribute.
In Chrome, the .scss file (I guess generated dynamically from .css file) does not have updated style value. Is there any SFDC background job/process that converts .css file to .scss file? If so, how do we make it take this updated style immediately?
To reflect the change, sometimes it takes a day . Sometimes its 15-20 minutes. Sometimes it does not get applied at all. This behavior is shown across Chrome, FireFox, Edge, IE and on Android phone.
What step am I missing here ?
Sometime when we refresh page then browser reload that page and included resources from cache not from server, So to get ride of this either we need to force refresh page using ctrl+F5 OR Alternative see this link to manage cache programatically
https://help.salesforce.com/articleView?id=sites_caching.htm&type=0
Kindly mark this as best answer if it's help.
Thanks
Arpit
Please Check your cache control setting in static resource if it is set to private then make it public and Let me know its help or not.
Thanks
Arpit
are you using static resource on site?
Thanks
Arpit
Code for which I am talking about
<apex:stylesheet value="{!$Resource.stylesheet_red}"/>
Thanks
Arpit
If you are using site then please set cache="false" in apex:page attribute If it is still not worked then please send code how you are including stylesheet on page.
Thanks
Arpit