diff --git a/lightrag_webui/vite.config.ts b/lightrag_webui/vite.config.ts
index 084f09e0..5381a870 100644
--- a/lightrag_webui/vite.config.ts
+++ b/lightrag_webui/vite.config.ts
@@ -4,9 +4,21 @@ 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()],
+ plugins: [react(), tailwindcss(), noCachePlugin()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')