mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 09:45:50 +03:00
[PR #57] [MERGED] Allow to serve WebP if explicitly requested #859
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#859
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/flyimg/flyimg/pull/57
Author: @baamenabar
Created: 3/25/2017
Status: ✅ Merged
Merged: 3/25/2017
Merged by: @baamenabar
Base:
master← Head:serve-webp📝 Commits (1)
2afea00Allow to serve WebP even when the requesting client does not explicitly support it📊 Changes
2 files changed (+12 additions, -5 deletions)
View changed files
📝
config/parameters.yml(+2 -2)📝
src/Core/Entity/Image.php(+10 -3)📄 Description
Currently we only send a response with webp format if the headers state webp support, like Chrome.
We should serve WebP if explicitly requested, because it could be coming from a
wgetrequest or acurlrequest, that just wants the WebP format to store it or do something else.Also updated the config name for enabling webP to
auto_webp_enabledbecause it's what it does.Today even with
webp_enabledwe can serve webp, which can be confusing.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.