function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Josip Juric87Josip Juric87 

Static resources cached and not refreshed when changed in Lightning Components

I have a problem with a static resource containing javascript, which is used in a Lightning Component. Since Lightning uses <ltng:require> to retrieve static resources, which refers to the static resource only with the name (i.e. without a timestamp like it was in Visualforce), the component always uses a cached version of the static resource. This means changes done in the static resource are not reflected in the component...
Am I doing something wrong, or is this a bug/feature of lightning components?