perf: precompress and cache assets (#7757)

* perf: precompress and cache assets

* fix cache header

* use startswith

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
Ben McCannandmertalev authored and GitHub committed 2024-03-08 21:15:38 -05:00
1 parent 4fdb0835c9
commit ba55e867e0
4 files changed
+77 -7

No files matched your search

+1 -6
View File
@@ -6,13 +6,8 @@ const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
// default options are shown. On some platforms
// these options are set automatically — see below
pages: 'build',
assets: 'build',
fallback: 'index.html',
precompress: false,
strict: true,
precompress: true,
}),
alias: {
$lib: 'src/lib',