diff --git a/Hyperswitch-React-Demo-App/webpack.dev.js b/Hyperswitch-React-Demo-App/webpack.dev.js index 9368ac4af..e950ece5b 100644 --- a/Hyperswitch-React-Demo-App/webpack.dev.js +++ b/Hyperswitch-React-Demo-App/webpack.dev.js @@ -16,7 +16,7 @@ let devServer = { }, }, headers: { - "Cache-Control": "max-age=31536000,must-revalidate", + "Cache-Control": "must-revalidate", }, }; diff --git a/src/orca-loader/Hyper.res b/src/orca-loader/Hyper.res index 372e194ec..36dc9ae10 100644 --- a/src/orca-loader/Hyper.res +++ b/src/orca-loader/Hyper.res @@ -36,7 +36,7 @@ let preloadFile = (~type_, ~href=``, ()) => { let link = CommonHooks.createElement("link") link.href = href link.\"as" = type_ - link.rel = "preload" + link.rel = "prefetch" link.crossorigin = "anonymous" checkAndAppend(`link[href="${href}"]`, link) } diff --git a/webpack.dev.js b/webpack.dev.js index 1c95cdd1b..8801754f3 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -32,7 +32,7 @@ let devServer = { // }, }, headers: { - "Cache-Control": "max-age=31536000,must-revalidate", + "Cache-Control": "must-revalidate", }, };