diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs index 9f75f35..4c4f386 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs @@ -413,7 +413,8 @@ public class Plugin : BasePlugin, IHasWebPages _logger.LogDebug("Reading index.html from {Path}", indexPath); var contents = File.ReadAllText(indexPath); - var scriptTag = ""; + // change URL with every relase to prevent the Browers from caching + var scriptTag = ""; // Only inject the script tag once if (contents.Contains(scriptTag, StringComparison.OrdinalIgnoreCase)) @@ -422,6 +423,10 @@ public class Plugin : BasePlugin, IHasWebPages return; } + // remove old version if necessary + string pattern = @"