<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>watanabe9434</author_name>
  <author_url>https://blog.hatena.ne.jp/watanabe9434/</author_url>
  <blog_title>かつ丼はおやつに入りますか？</blog_title>
  <blog_url>https://watanabe9434.hatenablog.com/</blog_url>
  <categories>
    <anon>typescript</anon>
    <anon>vue</anon>
    <anon>msw</anon>
  </categories>
  <description>自分の場合は Service Worker が起動する前にリクエストが走って、画面リロードしようがキャッシュが有効で304 Not Modifiedが返ってくる状況だったと思われる。 Async/Awaitを使って起動順を整理したら解消した。 main.ts でcreateAppしているところを以下のように修正して worker.startとcreateAppの順番を整理した。 main.ts async function enableMocking() { if (process.env.NODE_ENV !== 'development') { return } const { worke…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwatanabe9434.hatenablog.com%2Fentry%2F2024%2F08%2F23%2F011352&quot; title=&quot;vue3でmswを使ったらjsonレスポンスが返らずhtmlのDOMが返ってきたときの対処 - かつ丼はおやつに入りますか？&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-08-23 01:13:52</published>
  <title>vue3でmswを使ったらjsonレスポンスが返らずhtmlのDOMが返ってきたときの対処</title>
  <type>rich</type>
  <url>https://watanabe9434.hatenablog.com/entry/2024/08/23/011352</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
