From bace4695ac371a40aa01f8c013994657bfd5203b Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 18 May 2025 20:21:34 +0200 Subject: [PATCH] update zlib js suffix, as a cache breaker --- js/common.js | 2 +- js/{zlib-1.3.1.js => zlib-1.3.1-1.js} | 0 lib/Configuration.php | 2 +- tpl/bootstrap.php | 2 +- tpl/bootstrap5.php | 2 +- tpl/page.php | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename js/{zlib-1.3.1.js => zlib-1.3.1-1.js} (100%) diff --git a/js/common.js b/js/common.js index ddf2f5e5..c693ad10 100644 --- a/js/common.js +++ b/js/common.js @@ -11,7 +11,7 @@ global.WebCrypto = require('@peculiar/webcrypto').Crypto; // application libraries to test global.$ = global.jQuery = require('./jquery-3.7.1'); global.RawDeflate = require('./rawinflate-0.3').RawDeflate; -global.zlib = require('./zlib-1.3.1').zlib; +global.zlib = require('./zlib-1.3.1-1').zlib; require('./prettify'); global.prettyPrint = window.PR.prettyPrint; global.prettyPrintOne = window.PR.prettyPrintOne; diff --git a/js/zlib-1.3.1.js b/js/zlib-1.3.1-1.js similarity index 100% rename from js/zlib-1.3.1.js rename to js/zlib-1.3.1-1.js diff --git a/lib/Configuration.php b/lib/Configuration.php index daa05d7c..a8245816 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -123,7 +123,7 @@ class Configuration 'js/purify-3.2.5.js' => 'sha512-eLlLLL/zYuf5JuG0x4WQm687MToqOGP9cDQHIdmOy1ZpjiY4J48BBcOM7DtZheKk1UogW920+9RslWYB4KGuuA==', 'js/rawinflate-0.3.js' => 'sha512-g8uelGgJW9A/Z1tB6Izxab++oj5kdD7B4qC7DHwZkB6DGMXKyzx7v5mvap2HXueI2IIn08YlRYM56jwWdm2ucQ==', 'js/showdown-2.1.0.js' => 'sha512-WYXZgkTR0u/Y9SVIA4nTTOih0kXMEd8RRV6MLFdL6YU8ymhR528NLlYQt1nlJQbYz4EW+ZsS0fx1awhiQJme1Q==', - 'js/zlib-1.3.1.js' => 'sha512-5bU9IIP4PgBrOKLZvGWJD4kgfQrkTz8Z3Iqeu058mbQzW3mCumOU6M3UVbVZU9rrVoVwaW4cZK8U8h5xjF88eQ==', + 'js/zlib-1.3.1-1.js' => 'sha512-5bU9IIP4PgBrOKLZvGWJD4kgfQrkTz8Z3Iqeu058mbQzW3mCumOU6M3UVbVZU9rrVoVwaW4cZK8U8h5xjF88eQ==', ), ); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 5d5ea677..a07d4f9c 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -55,7 +55,7 @@ if ($ZEROBINCOMPATIBILITY) : - _scriptTag('js/zlib-1.3.1.js', 'async'); ?> + _scriptTag('js/zlib-1.3.1-1.js', 'async'); ?> _scriptTag('js/base-x-4.0.0.js', 'defer'); ?> _scriptTag('js/rawinflate-0.3.js', 'defer'); ?> _scriptTag('js/bootstrap-3.4.1.js', 'defer'); ?> diff --git a/tpl/bootstrap5.php b/tpl/bootstrap5.php index 916669ca..e8de680a 100644 --- a/tpl/bootstrap5.php +++ b/tpl/bootstrap5.php @@ -38,7 +38,7 @@ if ($ZEROBINCOMPATIBILITY) : - _scriptTag('js/zlib-1.3.1.js', 'defer'); ?> + _scriptTag('js/zlib-1.3.1-1.js', 'defer'); ?> _scriptTag('js/base-x-4.0.0.js', 'defer'); ?> _scriptTag('js/rawinflate-0.3.js', 'defer'); ?> _scriptTag('js/bootstrap-5.3.3.js', 'async'); ?> diff --git a/tpl/page.php b/tpl/page.php index 0753bff4..fb4cf8e9 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -34,7 +34,7 @@ if ($ZEROBINCOMPATIBILITY): - _scriptTag('js/zlib-1.3.1.js', 'async'); ?> + _scriptTag('js/zlib-1.3.1-1.js', 'async'); ?> _scriptTag('js/base-x-4.0.0.js', 'async'); ?> _scriptTag('js/rawinflate-0.3.js', 'async'); ?>