fix(admin): add no-store cache header to storefront-sections fetch
This commit is contained in:
parent
b87070f93b
commit
9ce178ea5e
1 changed files with 1 additions and 1 deletions
|
|
@ -1051,7 +1051,7 @@ export default function StorefrontSectionsPage() {
|
||||||
const headers: Record<string, string> = {};
|
const headers: Record<string, string> = {};
|
||||||
if (token) headers['Authorization'] = `Bearer ${token}`;
|
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) {
|
if (res.ok) {
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue