Skip to content

Commit 841f6b6

Browse files
authored
Merge branch 'ep2025' into ep2025-cache-update
2 parents 59870f9 + 179ec72 commit 841f6b6

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

astro.config.mjs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,27 @@ export default defineConfig({
153153
mdx(),
154154
svelte(),
155155
serviceWorker({
156-
workbox: { inlineWorkboxRuntime: true },
156+
workbox: {
157+
inlineWorkboxRuntime: true,
158+
runtimeCaching: [
159+
{
160+
urlPattern:
161+
/\.(?:js|css|json|png|jpg|jpeg|svg|woff2?|ttf|eot|gif)$/,
162+
handler: "CacheFirst",
163+
options: {
164+
cacheName: "assets-cache",
165+
expiration: {
166+
maxEntries: 100,
167+
maxAgeSeconds: 60 * 60 * 1, // 1h
168+
},
169+
},
170+
},
171+
{
172+
urlPattern: /\.html$/,
173+
handler: "NetworkOnly", // ⛔ Don't cache HTML
174+
},
175+
],
176+
},
157177
}),
158178
...(fastBuild
159179
? []

src/content/sprints/anyio.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "AnyIO"
3+
numberOfPeople: "2-8"
4+
pythonLevel: "Intermediate"
5+
contactPerson:
6+
name: "Alex Grönholm"
7+
8+
github: "agronholm"
9+
links:
10+
- title: "GitHub repo"
11+
url: "https://github.com/agronholm/anyio"
12+
- title: "Gitter chat"
13+
url: "https://matrix.to/#/#python-trio_AnyIO:gitter.im"
14+
---
15+
16+
We'll mostly work on improving the documentation, in particular adding guides
17+
for migrating existing asyncio or Trio apps and libraries to the AnyIO API. If
18+
you have a pet peeve with AnyIO, or would just like to ask questions or get help
19+
with your AnyIO migration, feel free to join!

0 commit comments

Comments
 (0)