Skip to content

Commit

Permalink
Redirect jpg & jpeg files to Webp image format
Browse files Browse the repository at this point in the history
Signed-off-by: Vipul Gupta (@vipulgupta2048) <[email protected]>
  • Loading branch information
vipulgupta2048 committed Oct 16, 2024
1 parent 30381bf commit 80d95f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cspell/computer-terms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ cpuset
createapikey
crossbuilding
cssesc
cwebp
CUDA
Customboard
decamelize
Expand Down
12 changes: 11 additions & 1 deletion config/redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,20 @@

# Important: keep dynamic redirect below the static redirects
# https://developers.cloudflare.com/pages/platform/redirects/
# Dynamic redirects

# BREAKING - Redirect all image formats to webp
# All images must be served in webp format
# The build script converts images during build time.

/img/*.png/ /img/:splat.webp
/img/*.png /img/:splat.webp
/img/*.jpg/ /img/:splat.webp
/img/*.jpg /img/:splat.webp
/img/*.jpeg/ /img/:splat.webp
/img/*.jpeg /img/:splat.webp

# Dynamic redirects

/deployment/network/:version/ /reference/OS/network/
/deployment/network/:version /reference/OS/network/
/understanding/understanding-devices/:version/ /reference/OS/overview/
Expand Down

0 comments on commit 80d95f9

Please sign in to comment.