WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

FileVersionProvider/GenerateCacheKey uses synchronous stream access

Open slaneyrw opened this issue 5 years ago • 1 comments

The FileVersionProvider used by the Asset.GenerateCacheKey uses synchronous access to the fileinfo stream ( passes stream directly to the SHA algorithm ), where as the AssetBuilder uses CopyToAsync.

Can you please ensure only Async stream access methods are used, our source is NOT a local file and requires an asynchronous read from an external source.

There is no "hook" that allows the source to be read asynchonously before the cachekey is calculated for the first time.

slaneyrw avatar Apr 21 '20 08:04 slaneyrw

This also manifests itself in the tag helpers. They need to use the ProcessAsync override, not the Process override.

slaneyrw avatar May 19 '20 09:05 slaneyrw