@patch-adams/core 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -4763,8 +4763,9 @@ function generateSkinCssLoader(options) {
4763
4763
  }
4764
4764
  function buildSkinCssOptions(config) {
4765
4765
  if (!config.skin) return null;
4766
+ const cacheBuster = Date.now().toString(36) + Math.random().toString(36).slice(2, 6);
4766
4767
  return {
4767
- remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css`,
4768
+ remoteUrl: `${config.remoteDomain}/skin/${config.skin}/style.css?v=${cacheBuster}`,
4768
4769
  localPath: `skin/${config.skin}/style.css`,
4769
4770
  timeout: config.cssAfter.timeout
4770
4771
  // reuse cssAfter timeout
@@ -4864,8 +4865,9 @@ function generateSkinJsLoader(options) {
4864
4865
  }
4865
4866
  function buildSkinJsOptions(config) {
4866
4867
  if (!config.skin) return null;
4868
+ const cacheBuster = Date.now().toString(36) + Math.random().toString(36).slice(2, 6);
4867
4869
  return {
4868
- remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js`,
4870
+ remoteUrl: `${config.remoteDomain}/skin/${config.skin}/script.js?v=${cacheBuster}`,
4869
4871
  localPath: `skin/${config.skin}/script.js`,
4870
4872
  timeout: config.jsAfter.timeout
4871
4873
  // reuse jsAfter timeout