Commit 7acea0a
committed
fileExists() on a cloud filesystem (e.g. S3) makes an HTTP HEAD request on
every uncached component fetch, adding latency proportional to file count.
Remove the existence check and widen the catch around create() to include
UnableToRetrieveMetadata (thrown by fileSize()/mimeType() when the file is
absent). This also fixes #159: manifest fetches no longer 500 in offline
environments where cloud-hosted files are unreachable during development.
1 parent 94d2762 commit 7acea0a
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
| |||
96 | 93 | | |
97 | 94 | | |
98 | 95 | | |
99 | | - | |
| 96 | + | |
100 | 97 | | |
101 | 98 | | |
102 | 99 | | |
| |||
0 commit comments