-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: speed up CI a bit (hopefully) (#9731)
Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Tee Ming <[email protected]> Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Ben McCann <[email protected]>
- Loading branch information
1 parent
8fd646b
commit f3d7a3a
Showing
23 changed files
with
148 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
packages/kit/test/apps/basics/src/routes/load/cache-control/bust/count/+server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
packages/kit/test/apps/basics/src/routes/load/cache-control/bust/increment/+server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { json } from '@sveltejs/kit'; | ||
import { increment } from '../state.js'; | ||
|
||
export function GET() { | ||
increment(); | ||
export function GET({ cookies }) { | ||
cookies.set( | ||
'cache-control-bust-count', | ||
+(cookies.get('cache-control-bust-count') ?? 0) + 1 + '', | ||
{ path: '/' } | ||
); | ||
|
||
return json({}); | ||
} |
9 changes: 0 additions & 9 deletions
9
packages/kit/test/apps/basics/src/routes/load/cache-control/bust/state.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
packages/kit/test/apps/basics/src/routes/load/cache-control/default/count/+server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
packages/kit/test/apps/basics/src/routes/load/cache-control/default/increment/+server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { json } from '@sveltejs/kit'; | ||
import { increment } from '../state.js'; | ||
|
||
export function GET() { | ||
increment(); | ||
export function GET({ cookies }) { | ||
cookies.set( | ||
'cache-control-default-count', | ||
+(cookies.get('cache-control-default-count') ?? 0) + 1 + '', | ||
{ path: '/' } | ||
); | ||
|
||
return json({}); | ||
} |
9 changes: 0 additions & 9 deletions
9
packages/kit/test/apps/basics/src/routes/load/cache-control/default/state.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
packages/kit/test/apps/basics/src/routes/load/cache-control/force/count/+server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
packages/kit/test/apps/basics/src/routes/load/cache-control/force/increment/+server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { json } from '@sveltejs/kit'; | ||
import { increment } from '../state.js'; | ||
|
||
export function GET() { | ||
increment(); | ||
export function GET({ cookies }) { | ||
cookies.set( | ||
'cache-control-force-count', | ||
+(cookies.get('cache-control-force-count') ?? 0) + 1 + '', | ||
{ path: '/' } | ||
); | ||
|
||
return json({}); | ||
} |
9 changes: 0 additions & 9 deletions
9
packages/kit/test/apps/basics/src/routes/load/cache-control/force/state.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.