Use If-None-Match
header when saving a file
#146
Labels
enhancement
New feature request
Triaged
This means that we've a ticket to look at this in the future
Currently,
unstable_overwriteFile(fileUrl: RequestInfo, file: Blob, options
explicitly overwrites any data at the provided URL. A more subtle behaviour would be to change it tounstable_saveFile(fileUrl: RequestInfo, file: Blob, options)
, withoptions
including a parameteroverwrite: boolean
set to true by default (to be consistent with the default behaviour ofunstable_overwriteFile
that would be replaced byunstable_saveFile
).Under the cover, the library would set the
If-None-Match
header for the server to check if a resource already exists at the provided URL.This feature should coordinate with nodeSolidServer/node-solid-server#1431.
The text was updated successfully, but these errors were encountered: