Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions src/content/docs/workers/static-assets/routing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ Based on the incoming requests, the following assets would be served:
| /folder | 307 to /folder/ | - |
| /folder.html | 307 to /folder/ | - |
| /folder/ | 200 | /folder/index.html |
| /folder/index | 307 /folder/ | - |
| /folder/index.html | 307 /folder/ | - |
| /folder/index | 307 to /folder/ | - |
| /folder/index.html | 307 to /folder/ | - |

#### 2. `not_found_handling`

Expand Down Expand Up @@ -185,18 +185,18 @@ Take the following directory structure:

Based on the incoming requests, the following assets would be served:

| Incoming Request | Response | Asset Served |
| ------------------ | -------------- | ------------------ |
| /file | 200 | /file.html |
| /file.html | 307 to /file | - |
| /file/ | 307 to /file | - |
| /file/index | 307 to /file | - |
| /file/index.html | 307 to /file | - |
| /folder | 307 to /folder | - |
| /folder.html | 307 to /folder | - |
| /folder/ | 200 | /folder/index.html |
| /folder/index | 307 /folder | - |
| /folder/index.html | 307 /folder | - |
| Incoming Request | Response | Asset Served |
| ------------------ | --------------- | ------------------ |
| /file | 200 | /file.html |
| /file.html | 307 to /file | - |
| /file/ | 307 to /file | - |
| /file/index | 307 to /file | - |
| /file/index.html | 307 to /file | - |
| /folder | 307 to /folder/ | - |
| /folder.html | 307 to /folder | - |
| /folder/ | 200 | /folder/index.html |
| /folder/index | 307 to /folder | - |
| /folder/index.html | 307 to /folder | - |

**`html_handling: "force-trailing-slash"`**

Expand All @@ -212,8 +212,8 @@ Based on the incoming requests, the following assets would be served:
| /folder | 307 to /folder/ | - |
| /folder.html | 307 to /folder/ | - |
| /folder/ | 200 | /folder/index.html |
| /folder/index | 307 /folder/ | - |
| /folder/index.html | 307 /folder/ | - |
| /folder/index | 307 to /folder/ | - |
| /folder/index.html | 307 to /folder/ | - |

**`html_handling: "drop-trailing-slash"`**

Expand All @@ -229,8 +229,8 @@ Based on the incoming requests, the following assets would be served:
| /folder | 200 | /folder/index.html |
| /folder.html | 307 to /folder | - |
| /folder/ | 307 to /folder | - |
| /folder/index | 307 /folder | - |
| /folder/index.html | 307 /folder | - |
| /folder/index | 307 to /folder | - |
| /folder/index.html | 307 to /folder | - |

**`html_handling: "none"`**

Expand Down
Loading