Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't cache responses with 0 content length #3743

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

mueller-ma
Copy link
Member

I noticed that myopenhab.org sometimes returns http code 200 for an icon and a valid svg content type, but the content length is 0. In that case, change to http code to 500 to avoid caching.

Fixes #3733

I noticed that myopenhab.org sometimes returns http code 200 for an icon and a valid svg content type, but the content length is 0. In that case, change to http code to 500 to avoid caching.

Fixes openhab#3733

Signed-off-by: mueller-ma <[email protected]>
@mueller-ma mueller-ma merged commit d8c8e2d into openhab:main Jul 16, 2024
8 checks passed
@mueller-ma mueller-ma deleted the fix-cache-0-length branch July 16, 2024 17:59
mueller-ma added a commit that referenced this pull request Jul 18, 2024
mueller-ma added a commit that referenced this pull request Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some icons aren't loaded anymore
1 participant