vite-plugin-remote-assets icon indicating copy to clipboard operation
vite-plugin-remote-assets copied to clipboard

Infer extension from `content-type`

Open benmccann opened this issue 3 years ago • 1 comments

Clear and concise description of the problem

A static file fetched from a URL like https://cdn.example.com/f2d0003e won't be saved with the proper extension

Suggested solution

Map content-type to extension

Alternative

No response

Additional context

This is very low priority for me. It was just something I happened to notice

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

benmccann avatar Aug 24 '22 23:08 benmccann

Sounds solid. Do you mind sending a PR? Thanks!

antfu avatar Aug 25 '22 06:08 antfu