File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed
Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff 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+ / \. (?: j s | c s s | j s o n | p n g | j p g | j p e g | s v g | w o f f 2 ? | t t f | e o t | g i f ) $ / ,
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 : / \. h t m l $ / ,
173+ handler : "NetworkOnly" , // ⛔ Don't cache HTML
174+ } ,
175+ ] ,
176+ } ,
157177 } ) ,
158178 ...( fastBuild
159179 ? [ ]
Original file line number Diff line number Diff line change 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!
You can’t perform that action at this time.
0 commit comments