fix(admin): add no-store cache header to storefront-sections fetch

This commit is contained in:
iFixKart Dev 2026-11-17 19:46:02 +05:30
parent b87070f93b
commit 9ce178ea5e

View file

@ -1051,7 +1051,7 @@ export default function StorefrontSectionsPage() {
const headers: Record<string, string> = {};
if (token) headers['Authorization'] = `Bearer ${token}`;
const res = await fetch(`${backendUrl}/api/v1/admin/storefront/content/all`, { headers });
const res = await fetch(`${backendUrl}/api/v1/admin/storefront/content/all`, { headers, cache: 'no-store' });
if (res.ok) {
const data = await res.json();
if (data && data.length > 0) {