mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 17:53:31 -04: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:
		| @@ -42,6 +42,9 @@ export default { | ||||
|     slug: { | ||||
|       default: null, | ||||
|     }, | ||||
|     imageVersion: { | ||||
|       default: null, | ||||
|     }, | ||||
|     height: { | ||||
|       default: 200, | ||||
|     }, | ||||
| @@ -65,14 +68,14 @@ export default { | ||||
|     }; | ||||
|   }, | ||||
|   methods: { | ||||
|     getImage(image) { | ||||
|     getImage(slug) { | ||||
|       switch (this.imageSize) { | ||||
|         case "tiny": | ||||
|           return api.recipes.recipeTinyImage(image); | ||||
|           return api.recipes.recipeTinyImage(slug, this.imageVersion); | ||||
|         case "small": | ||||
|           return api.recipes.recipeSmallImage(image); | ||||
|           return api.recipes.recipeSmallImage(slug, this.imageVersion); | ||||
|         case "large": | ||||
|           return api.recipes.recipeImage(image); | ||||
|           return api.recipes.recipeImage(slug, this.imageVersion); | ||||
|       } | ||||
|     }, | ||||
|   }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user