3 ms·
I haven't used the download attribute in a while, but the last time I felt it was a bit too finicky. E.g. only works if the file is on the same origin and there
by smoe 5y ago
I haven't used the download attribute in a while, but the last time I felt it was a bit too finicky. E.g. only works if the file is on the same origin and there are more differences between behavior in different browsers than setting headers from the server. Think it is still a good enough solution in many circumstances.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#...