@sveltejs/kit 1.0.0-next.231 → 1.0.0-next.232
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/assets/server/index.js +3 -2
- package/dist/chunks/index.js +3 -2
- package/dist/chunks/index5.js +1 -1
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/assets/server/index.js
CHANGED
|
@@ -1913,8 +1913,9 @@ async function respond(incoming, options, state = {}) {
|
|
|
1913
1913
|
: await render_page(request, route, match, options, state, ssr);
|
|
1914
1914
|
|
|
1915
1915
|
if (response) {
|
|
1916
|
-
// inject ETags for 200 responses
|
|
1917
|
-
|
|
1916
|
+
// inject ETags for 200 responses, if the endpoint
|
|
1917
|
+
// doesn't have its own ETag handling
|
|
1918
|
+
if (response.status === 200 && !response.headers.etag) {
|
|
1918
1919
|
const cache_control = get_single_valued_header(response.headers, 'cache-control');
|
|
1919
1920
|
if (!cache_control || !/(no-store|immutable)/.test(cache_control)) {
|
|
1920
1921
|
let if_none_match_value = request.headers['if-none-match'];
|
package/dist/chunks/index.js
CHANGED
|
@@ -1863,8 +1863,9 @@ async function respond(incoming, options, state = {}) {
|
|
|
1863
1863
|
: await render_page(request, route, match, options, state, ssr);
|
|
1864
1864
|
|
|
1865
1865
|
if (response) {
|
|
1866
|
-
// inject ETags for 200 responses
|
|
1867
|
-
|
|
1866
|
+
// inject ETags for 200 responses, if the endpoint
|
|
1867
|
+
// doesn't have its own ETag handling
|
|
1868
|
+
if (response.status === 200 && !response.headers.etag) {
|
|
1868
1869
|
const cache_control = get_single_valued_header(response.headers, 'cache-control');
|
|
1869
1870
|
if (!cache_control || !/(no-store|immutable)/.test(cache_control)) {
|
|
1870
1871
|
let if_none_match_value = request.headers['if-none-match'];
|
package/dist/chunks/index5.js
CHANGED
|
@@ -505,7 +505,7 @@ async function prerender({ cwd, out, log, config, build_data, fallback, all }) {
|
|
|
505
505
|
|
|
506
506
|
if (is_html && config.kit.prerender.crawl) {
|
|
507
507
|
for (const href of crawl(/** @type {string} */ (rendered.body))) {
|
|
508
|
-
if (href.startsWith('data:')) continue;
|
|
508
|
+
if (href.startsWith('data:') || href.startsWith('#')) continue;
|
|
509
509
|
|
|
510
510
|
const resolved = resolve$1(path, href);
|
|
511
511
|
if (!is_root_relative(resolved)) continue;
|
package/dist/cli.js
CHANGED
|
@@ -912,7 +912,7 @@ async function launch(port, https) {
|
|
|
912
912
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
913
913
|
}
|
|
914
914
|
|
|
915
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
915
|
+
const prog = sade('svelte-kit').version('1.0.0-next.232');
|
|
916
916
|
|
|
917
917
|
prog
|
|
918
918
|
.command('dev')
|
|
@@ -1064,7 +1064,7 @@ async function check_port(port) {
|
|
|
1064
1064
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1065
1065
|
if (open) launch(port, https);
|
|
1066
1066
|
|
|
1067
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1067
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.232'}\n`));
|
|
1068
1068
|
|
|
1069
1069
|
const protocol = https ? 'https:' : 'http:';
|
|
1070
1070
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|