mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02:00
bug/bug-fixes (#424)
* fix image write/caching * Caddyfile Caching header * more aggressive caching Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
parent
eb3d56936e
commit
503fe5cb2e
11 changed files with 44 additions and 34 deletions
|
@ -146,16 +146,16 @@ export const recipeAPI = {
|
|||
return response.data;
|
||||
},
|
||||
|
||||
recipeImage(recipeSlug) {
|
||||
return `/api/media/recipes/${recipeSlug}/images/original.webp`;
|
||||
recipeImage(recipeSlug, version = null, key = null) {
|
||||
return `/api/media/recipes/${recipeSlug}/images/original.webp?&rnd=${key}&version=${version}`;
|
||||
},
|
||||
|
||||
recipeSmallImage(recipeSlug) {
|
||||
return `/api/media/recipes/${recipeSlug}/images/min-original.webp`;
|
||||
recipeSmallImage(recipeSlug, version = null, key = null) {
|
||||
return `/api/media/recipes/${recipeSlug}/images/min-original.webp?&rnd=${key}&version=${version}`;
|
||||
},
|
||||
|
||||
recipeTinyImage(recipeSlug) {
|
||||
return `/api/media/recipes/${recipeSlug}/images/tiny-original.webp`;
|
||||
recipeTinyImage(recipeSlug, version = null, key = null) {
|
||||
return `/api/media/recipes/${recipeSlug}/images/tiny-original.webp?&rnd=${key}&version=${version}`;
|
||||
},
|
||||
|
||||
recipeAssetPath(recipeSlug, assetName) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue