You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Static routes at the moment only support rendering of static content. This enhancement is to have some -DownloadOnly switch which, when supplied, will flag a specific static route to instead attach it's files (for downloading) instead of rendering them.
Idea:
route static'/images''./my-images'-do
This way if someone hit http://localhost/images/cats/fluffy.png, then the fluffy.png image is downloaded instead of rendered in the browser.
If a static route is enabled for downloading only, then default files are not respected - the path supplied must be whole.
Caching is not used (it's not supported on the attach function anyway, but just ensuring).
The text was updated successfully, but these errors were encountered:
Static routes at the moment only support rendering of static content. This enhancement is to have some
-DownloadOnly
switch which, when supplied, will flag a specific static route to instead attach it's files (for downloading) instead of rendering them.Idea:
This way if someone hit
http://localhost/images/cats/fluffy.png
, then thefluffy.png
image is downloaded instead of rendered in the browser.default
files are not respected - the path supplied must be whole.attach
function anyway, but just ensuring).The text was updated successfully, but these errors were encountered: