대시보드 문서 캐시 방지
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
||||
header('Pragma: no-cache');
|
||||
header('Expires: 0');
|
||||
|
||||
$nginxFiles = [
|
||||
'/etc/nginx/nginx.conf',
|
||||
'/etc/nginx/sites-enabled',
|
||||
@@ -318,7 +322,7 @@ ksort($items, SORT_NATURAL);
|
||||
<link rel="icon" href="assets/icon-192.png" type="image/png" sizes="192x192">
|
||||
<link rel="apple-touch-icon" href="assets/apple-touch-icon.png">
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<script src="assets/asset-reload.js?v=20260721_autotoken1" data-service="seoul" defer></script>
|
||||
<script src="assets/asset-reload.js?v=20260721_nocache1" data-service="seoul" defer></script>
|
||||
<script src="https://chaegeon.com/log/bancheck.min.js?_=<?php echo time(); ?>"></script>
|
||||
<style>
|
||||
* {
|
||||
@@ -465,7 +469,9 @@ ksort($items, SORT_NATURAL);
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('sw.js', { scope: './' }).catch(() => undefined);
|
||||
navigator.serviceWorker.register('sw.js?v=20260721_nocache1', { scope: './' })
|
||||
.then(registration => registration.update())
|
||||
.catch(() => undefined);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user