spatie / laravel-glide

Easily convert images with Glide
https://freek.dev/2015/12/easily-convert-images-with-glide/
MIT License
424 stars 51 forks source link

the output image by this way can't be cached by browser,how to solve? #43

Closed argb closed 8 years ago

argb commented 8 years ago

Images was out put by php,can't be cached.If I put images in /public directory,output by nginx,it can be cached. How to fix the problem?

freekmurze commented 8 years ago

I'm afraid that I don't understand the problem you are having. Could you please give more info on this problem? If possible post some code with which the issue can be recreated.

argb commented 8 years ago

@freekmurze Solved,because I used another package,laravel-httpcache(https://github.com/barryvdh/laravel-httpcache),this package don't work well,and it would change the request headers,generate a new response with every request,not cached. it worked well after i removed laravel-httpcache.