릴리즈 v0.3.1: index.html 캐시 방지 헤더 적용 및 시스템 안정화
This commit is contained in:
parent
98cb8e13fa
commit
faf17d3fcc
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "smartims",
|
||||
"private": true,
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -419,6 +419,10 @@ app.use(express.static(distPath));
|
||||
// The "catchall" handler: for any request that doesn't
|
||||
// match one above, send back React's index.html file.
|
||||
app.get(/(.*)/, (req, res) => {
|
||||
// Prevent caching for index.html to ensure updates are detected immediately
|
||||
res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate');
|
||||
res.setHeader('Pragma', 'no-cache');
|
||||
res.setHeader('Expires', '0');
|
||||
res.sendFile(path.join(distPath, 'index.html'));
|
||||
});
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "server",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@ -97,7 +97,7 @@ export function VersionPage() {
|
||||
};
|
||||
|
||||
// Client/Frontend version fixed at build time
|
||||
const frontendVersion = '0.3.0';
|
||||
const frontendVersion = '0.3.1';
|
||||
const buildDate = '2026-01-24';
|
||||
|
||||
// Check if update is needed based on frontend version vs remote tag
|
||||
@ -249,6 +249,16 @@ export function VersionPage() {
|
||||
|
||||
<div className="space-y-4">
|
||||
{[
|
||||
{
|
||||
version: '0.3.1',
|
||||
date: '2026-01-24',
|
||||
title: '업데이트 가용성 및 캐시 정책 강화',
|
||||
changes: [
|
||||
'서버 사이드 No-Cache 헤더 적용으로 업데이트 후 강제 새로고침 현상 해결',
|
||||
'Vite 빌드 아티팩트 서빙 안정화 패치'
|
||||
],
|
||||
type: 'fix'
|
||||
},
|
||||
{
|
||||
version: '0.3.0',
|
||||
date: '2026-01-24',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user