csvapi
csvapi copied to clipboard
WIP: New hashing schema
@abulte I would need a review here. I left several comments in the code after implementing the double cache feature. The question comes from the upload view. The uploaded file will not have a URL hash. Therefore the way we look for it in tableview or exportview will not work.
A work around would be to change the endpoint:
"{scheme}://{request.host}/api/{urlhash}"
to
"{scheme}://{request.host}/api/{filehash}"
This would work but would it make the URL hash useless and not relevant? Since we would not use it for anything else than to retrieve an DB entry for the first step of cache validation (and could be done by seeking with the filehash directly?)