avataaars-generator
avataaars-generator copied to clipboard
Force server to return svg file
When I run the application locally, I can't embed svg images
{% set url = 'https://127.0.0.1:8007/?accessoriesType=Kurt&avatarStyle=Transparent&clotheColor=Gray02&clotheType=ShirtVNeck&eyeType=Side&eyebrowType=RaisedExcitedNatural&facialHairColor=Red&facialHairType=BeardLight&hairColor=Blonde&mouthType=Default&skinColor=Pale&topType=LongHairCurly' %}
<img src="{{ url }}" />
When I inspect what's returned, it's the html page, not the svg.
Is there a way to "trigger" an svg download, e.g. /myavatar.svg?accessoriesType=Kurt&avatarStyle=Transparent&clotheColor=Gray02&clotheType=ShirtVNeck
That might make caching easier, too.