From 10b55dbdc7225e50392df15d2c95dd43964c930b Mon Sep 17 00:00:00 2001 From: yangdx Date: Sat, 26 Jul 2025 08:28:05 +0800 Subject: [PATCH] Revert "Add no-cache headers to index.html via custom Vite plugin" This reverts commit 93ce53394fe9d0f479870278b3e02ef9338d92e5. --- lightrag_webui/vite.config.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lightrag_webui/vite.config.ts b/lightrag_webui/vite.config.ts index 5381a870..084f09e0 100644 --- a/lightrag_webui/vite.config.ts +++ b/lightrag_webui/vite.config.ts @@ -4,21 +4,9 @@ import { webuiPrefix } from '@/lib/constants' import react from '@vitejs/plugin-react-swc' import tailwindcss from '@tailwindcss/vite' -// A custom Vite plugin to add cache-control headers to index.html -const noCachePlugin = () => ({ - name: 'no-cache', - transformIndexHtml(html: string) { - const cacheControlMeta = ` - - - `; - return html.replace('', `${cacheControlMeta}\n`); - }, -}); - // https://vite.dev/config/ export default defineConfig({ - plugins: [react(), tailwindcss(), noCachePlugin()], + plugins: [react(), tailwindcss()], resolve: { alias: { '@': path.resolve(__dirname, './src')