start url
This commit is contained in:
+4
-3
@@ -18,6 +18,7 @@ export default defineConfig({
|
||||
theme_color: "#ffffff",
|
||||
background_color: "#ffffff",
|
||||
display: "standalone",
|
||||
start_url: "/dashboard", // صفحه اصلی PWA
|
||||
icons: [
|
||||
{
|
||||
src: "/icon-192x192.png",
|
||||
@@ -39,10 +40,10 @@ export default defineConfig({
|
||||
options: {
|
||||
cacheName: "api-cache",
|
||||
expiration: {
|
||||
maxEntries: 50, // تعداد درخواستهای کششده
|
||||
maxAgeSeconds: 60 * 60 * 24, // مدتزمان نگهداری در کش (اینجا 1 روز)
|
||||
maxEntries: 50,
|
||||
maxAgeSeconds: 60 * 60 * 24,
|
||||
},
|
||||
networkTimeoutSeconds: 10, // بعد از 10 ثانیه اگر پاسخ نداد، از کش استفاده کن
|
||||
networkTimeoutSeconds: 10,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user