> For the complete documentation index, see [llms.txt](https://documentation.pushly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.pushly.com/pushly-ja/integration/webpusshu/sdk/tosekyuritisri.md).

# 配信とセキュリティ（SRI）

Pushly は、Subresource Integrity（SRI）を使用して、固定された変更不可の Web SDK バージョンを読み込むことをサポートしています。

このオプションは、CSP ポリシーの強制など、厳格なセキュリティ要件を持つお客様向けです。ほとんどのお客様は、引き続き最新の SDK を使用してください。

***

#### SRI はいつ使うべきですか？

SRI は、次の要件がある場合にのみ使用してください：

* サードパーティスクリプトの暗号学的検証
* の適用 `require-sri-for script` Content Security Policy で
* SDK の更新がいつ発生するかを明示的に制御すること

これらの要件がない場合は、 [最新の SDK](/pushly-ja/integration/webpusshu/kuikkusutto.md) を使用してください。

***

#### 固定された SDK スニペットの例（SRI）

```html
<script
  src="https://cdn.p-n.io/sdk/web/pushly@3.1.0.min.js"
  integrity="sha384-REPLACE_WITH_HASH"
  crossorigin="anonymous"
  async
  data-domain-key="DOMAIN_KEY">
</script>
```

これにより、変更されることのない特定の SDK バージョンが読み込まれます。

***

#### integrity ハッシュを取得する

各 SDK リリースの integrity ハッシュは、リリースマニフェストに公開されています。

バージョン 3.1.0 の場合：

```
https://cdn.p-n.io/sdk/web/releases/3.1.0/manifest.json
```

次を探してください： `files[].integrity` フィールドを見つけ、その値を次にコピーします： `integrity` 属性。

***

#### 固定された SDK のアップグレード

固定された SDK は自動更新されません。

アップグレードするには：

1. スクリプト内の SDK バージョンを更新します `src`
2. 対応する `integrity` ハッシュ
3. 更新されたスニペットをデプロイします

```diff
- src="https://cdn.p-n.io/sdk/web/pushly@3.1.0.min.js"
- integrity="sha384-OLD_HASH"
+ src="https://cdn.p-n.io/sdk/web/pushly@3.2.0.min.js"
+ integrity="sha384-NEW_HASH"
```

スニペットを更新しない場合、サイトは古い SDK を無期限に実行し続けます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.pushly.com/pushly-ja/integration/webpusshu/sdk/tosekyuritisri.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
