惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tenable Blog
博客园_首页
Vercel News
Vercel News
WordPress大学
WordPress大学
美团技术团队
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Y
Y Combinator Blog
博客园 - 【当耐特】
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
腾讯CDC
M
MIT News - Artificial intelligence
爱范儿
爱范儿
Recent Announcements
Recent Announcements
雷峰网
雷峰网
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
The Register - Security
The Register - Security
Jina AI
Jina AI
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog
P
Privacy & Cybersecurity Law Blog
Recorded Future
Recorded Future
Help Net Security
Help Net Security
N
News and Events Feed by Topic
博客园 - Franky
P
Proofpoint News Feed
L
LINUX DO - 热门话题
S
SegmentFault 最新的问题
The GitHub Blog
The GitHub Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
D
Docker
Google DeepMind News
Google DeepMind News
有赞技术团队
有赞技术团队
IT之家
IT之家
Security Latest
Security Latest
L
LangChain Blog
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
J
Java Code Geeks

Recent Commits to web-share-target:main

Refactor: remove WebIDL (#106) · w3c/web-share-target@72dd80f Possibility of transferring user id (#100) · w3c/web-share-target@0782f1a chore: use group option in config · w3c/web-share-target@fadadfb chore: use main branch in config · w3c/web-share-target@a7a06ec Editorial: reference Encoding's 'UTF-8' directly (#96) · w3c/web-share-target@a703396 chore: migrate to WebApps WG (#95) · w3c/web-share-target@6025309 Accessibility considerations (#88) · w3c/web-share-target@93bf095 editorial: link to urlencoded serializer (#92) · w3c/web-share-target@a8d4a5d chore: cleanup some ReSpec usage (#91) · w3c/web-share-target@b27e5a8 Update w3c.json · w3c/web-share-target@41b27b5 Long share requests may truncate with GET (#82) · w3c/web-share-target@dd4e83f Remove 'early draft' wording (#79) · w3c/web-share-target@fc831cb Skip bad files entries and make accept required (#78) · w3c/web-share-target@83a63b0 Validate enctype when method is GET (#72) · w3c/web-share-target@4078bc4 Support file sharing (#53) · w3c/web-share-target@76eabad [web-share-target] Introduce Level 2 Spec (#71) · w3c/web-share-target@a5f4eb2 Potentially trustworthy origins (#69) · w3c/web-share-target@b3c4d76 Mention plan for sharing files (#65) · w3c/web-share-target@3fccfd1 Retire links to Interface document (#62) · w3c/web-share-target@5279a5a
Encourage redirect after POST (#80) · w3c/web-share-target@0d9d25f
ewilligers · 2019-04-16 · via Recent Commits to web-share-target:main

This repository was archived by the owner on Jun 30, 2026. It is now read-only.

File tree

Original file line numberDiff line numberDiff line change

@@ -200,8 +200,8 @@ <h2>

200200

event.respondWith((async () =&gt; {

201201

const formData = await event.request.formData();

202202

const link = formData.get('link') || '';

203-

saveBookmark(link);

204-

return new Response('Bookmark saved: ' + link);

203+

const responseUrl = await saveBookmark(link);

204+

return Response.redirect(responseUrl, 303);

205205

})());

206206

});

207207

</pre>

@@ -268,6 +268,12 @@ <h2>

268268

<code>url</code> with a short link to fit into the message size.

269269

</li>

270270

</ul>

271+

<p>

272+

As with HTML forms, replying to a POST request with a

273+

<a data-cite="!RFC7231#section-6.4.4">303 See Other</a> redirect

274+

is highly recommended, as it avoids the POST being submitted a

275+

second time if the user requests a page refresh.

276+

</p>

271277

</section>

272278

<section data-link-for="WebAppManifest">

273279

<h2>