First time GET request on SVG returns Content Length as None

Options

While trying to access a cloudinary URL for an SVG, the content length is not set on the first GET request. But subsequent requests has the header set. I process the asset based on content length further down which errors out in case the value is not set.


Tagged:

Answers

  • Vdeub
    Vdeub Member, Cloudinary Staff Posts: 54
    Options

    Hi @vj97,

    I am not able to locate your account on our side.

    Any chance you could share an example of URLs you are using when delivering the SVGs? If you apply transformations on-the-fly then we might need to process the transformation hence the content length not being available. Usually, using eager transformations to generate the derived asset beforehand can be a good solution here.

    Thanks,

    Loic