Comments (2)
The problem was caused when nginx sets the expire header, to comply with google site speed Leverage browser caching
#Leverage browser caching
location ~* \.(jpg|jpeg|png|gif|ico|tiff|ttf|woff|pdf|json|css|js)$ {
expires 365d;
}
Now i get the following error
NotFoundHttpException in Application.php line 901:
in Application.php line 901
at Application->abort('404', '', array()) in helpers.php line 21
at abort('404') in ImageController.php line 39
at ImageController->serve('images/listings/full/326fbe989b83c1d4e81f8d110aaa2159-image(mini_image_2x).jpg')
at call_user_func_array(array(object(ImageController), 'serve'), array('path' => 'images/listings/full/326fbe989b83c1d4e81f8d110aaa2159-image(mini_image_2x).jpg')) in Controller.php line 246
at Controller->callAction('serve', array('path' => 'images/listings/full/326fbe989b83c1d4e81f8d110aaa2159-image(mini_image_2x).jpg')) in ControllerDispatcher.php line 162
at ControllerDispatcher->call(object(ImageController), object(Route), 'serve') in ControllerDispatcher.php line 107
at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 108
at ControllerDispatcher->callWithinStack(object(ImageController), object(Route), object(Request), 'serve') in ControllerDispatcher.php line 67
at ControllerDispatcher->dispatch(object(Route), object(Request), 'Folklore\Image\ImageController', 'serve') in Route.php line 204
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 701
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Router.php line 703
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 670
at Router->dispatchToRoute(object(Request)) in Router.php line 628
at Router->dispatch(object(Request)) in Kernel.php line 214
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 115
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53
from laravel-image-legacy.
That problem was because image was somehow deleted.
Nonetheless it would be good to find a way to do the cache header without interfering.
from laravel-image-legacy.
Related Issues (20)
- Fix for laravel 5.2 HOT 4
- Enable image browser caching
- Can't get cached image from custom folder HOT 2
- Limit only the specified type and size HOT 2
- image resize regeneration problem HOT 2
- Option to scale only the images width HOT 1
- Potrait images from iphone got rotated 45 degrees HOT 1
- Change format with url call
- Road to v1 HOT 2
- Write permission checking in ImageServe.php
- Image::url returning url but image is not resized HOT 2
- Downscale only option? HOT 1
- how to use this lib on lumen 5.4
- How to use this lib on Laravel 5.5.24 HOT 8
- Image file missing HOT 2
- Saving Image Doesn't Work HOT 4
- Laravel 5.7 HOT 1
- ImageServiceProvider.php line 42: Call to undefined method Intervention\Image\ImageManager::pattern() HOT 6
- Laravel 6 HOT 2
- Added Support for Laravel 9, 10 By Forking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-image-legacy.