Skip to content

Commit b52b10b

Browse files
authored
Merge pull request #29 from saumeya/cache-fix
fix: cache issue for dev env
2 parents 5bbf8e6 + 8155bf2 commit b52b10b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

webpack.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-env node */
22

3+
import { ConsoleRemotePlugin } from "@openshift-console/dynamic-plugin-sdk-webpack";
4+
import * as path from "path";
35
import { Configuration as WebpackConfiguration } from "webpack";
46
import { Configuration as WebpackDevServerConfiguration } from "webpack-dev-server";
5-
import * as path from "path";
6-
import { ConsoleRemotePlugin } from "@openshift-console/dynamic-plugin-sdk-webpack";
77

88
interface Configuration extends WebpackConfiguration {
99
devServer?: WebpackDevServerConfiguration;
@@ -88,7 +88,8 @@ const config: Configuration = {
8888
headers: {
8989
"Access-Control-Allow-Origin": "*",
9090
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
91-
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Authorization"
91+
"Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Authorization",
92+
"Cache-Control": "no-store",
9293
},
9394
devMiddleware: {
9495
writeToDisk: true,

0 commit comments

Comments
 (0)