@velocity-astro/cms-astro 0.1.0-beta.5 → 0.1.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocity-astro/cms-astro",
3
- "version": "0.1.0-beta.5",
3
+ "version": "0.1.0-beta.6",
4
4
  "description": "The Astro side of Velocity CMS: a live loader for pages rendered on demand, a Content Layer loader for static builds, and the integration.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,12 +34,12 @@
34
34
  "!dist/**/*.test.*"
35
35
  ],
36
36
  "dependencies": {
37
- "@velocity-astro/cms-admin": "0.1.0-beta.5",
38
- "@velocity-astro/cms-api": "0.1.0-beta.5",
39
- "@velocity-astro/cms-auth": "0.1.0-beta.5",
40
- "@velocity-astro/cms-core": "0.1.0-beta.5",
41
- "@velocity-astro/cms-db": "0.1.0-beta.5",
42
- "@velocity-astro/cms-plugins": "0.1.0-beta.5"
37
+ "@velocity-astro/cms-admin": "0.1.0-beta.6",
38
+ "@velocity-astro/cms-api": "0.1.0-beta.6",
39
+ "@velocity-astro/cms-auth": "0.1.0-beta.6",
40
+ "@velocity-astro/cms-core": "0.1.0-beta.6",
41
+ "@velocity-astro/cms-db": "0.1.0-beta.6",
42
+ "@velocity-astro/cms-plugins": "0.1.0-beta.6"
43
43
  },
44
44
  "optionalDependencies": {
45
45
  "sharp": "^0.35.4"
@@ -5,7 +5,9 @@ export const prerender = false;
5
5
 
6
6
  /**
7
7
  * What the page beside the editor's form runs (`src/preview-bridge.ts`). The preview adds it to
8
- * that page only, and it does nothing unless the page is in a frame of the same site.
8
+ * that page only, and it does nothing unless the page is in a frame of the same site. A browser
9
+ * asks for it each time: it is small, only an editor loads it, and a copy kept from before an
10
+ * upgrade would not know what the editor now says to it.
9
11
  */
10
12
  export const GET: APIRoute = () =>
11
- new Response(PREVIEW_BRIDGE_SCRIPT, { headers: { 'Content-Type': 'text/javascript; charset=utf-8', 'Cache-Control': 'public, max-age=3600' } });
13
+ new Response(PREVIEW_BRIDGE_SCRIPT, { headers: { 'Content-Type': 'text/javascript; charset=utf-8', 'Cache-Control': 'no-cache' } });