You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Repeatedly doing fetch() on the same document from a third party server without caching is going to be slower than it needs to be. We should cache the most recently used documents and reuse the same array buffer that has already been fetched.
This caching can be handled in loadDocumentFromUrl, which can resolve to the cached document if it is in the cache.
Ideally we should use the fetch HTTP response headers to check for freshness as well, but that may be overkill for an example server.
The text was updated successfully, but these errors were encountered:
Required us to remove the abbreviated express type imports, because
we have to distinguish between the built-in fetch Response type and
the express framework Response type.
Required us to remove the abbreviated express type imports, because
we have to distinguish between the built-in fetch Response type and
the express framework Response type.
Repeatedly doing fetch() on the same document from a third party server without caching is going to be slower than it needs to be. We should cache the most recently used documents and reuse the same array buffer that has already been fetched.
This caching can be handled in loadDocumentFromUrl, which can resolve to the cached document if it is in the cache.
Ideally we should use the fetch HTTP response headers to check for freshness as well, but that may be overkill for an example server.
The text was updated successfully, but these errors were encountered: