Skip to content

[enhancement]: Set Cache-Control headers on generated images in WebUI #3426

@hulknsmash

Description

@hulknsmash

Is there an existing issue for this?

  • I have searched the existing issues

Contact Details

No response

What should this feature add?

I'm using InvokeAI on a remote host with >200ms latency. Since the web ui doesn't set Cache-Control header switching images is very slow even though the image I'm switching to has already been loaded before, since the browser reaches out for a 304 first before switching.

Since each image can't be modified after generation, it should be ok to specify a reasonable max-age.

Alternatives

No response

Aditional Content

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions