File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 33
33
//
34
34
],
35
35
36
+ /*
37
+ |--------------------------------------------------------------------------
38
+ | Force Reload Javascript Modules
39
+ |--------------------------------------------------------------------------
40
+ |
41
+ | To force a reload, Live Preview appends a timestamp to the URL on
42
+ | script tags of type 'module'. You may disable this behavior here.
43
+ |
44
+ */
45
+
46
+ 'force_reload_js_modules ' => true ,
47
+
36
48
];
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ protected function contents()
149
149
{
150
150
$ contents = $ this ->view ()->render ();
151
151
152
- if ($ this ->request ->isLivePreview ()) {
152
+ if ($ this ->request ->isLivePreview () && config ( ' statamic.live_preview.force_reload_js_modules ' , true ) ) {
153
153
$ contents = $ this ->versionJavascriptModules ($ contents );
154
154
}
155
155
You can’t perform that action at this time.
0 commit comments