Software Architecture (1)

PHP: Optimised file response in Laravel using HTTP Cache Headers

by Matt Komarnicki – May 28, 2015
In most common situations you are going to let your web server handle all HTTP responses for you. Imagine a case where a client is requesting a file by accessing an unique URL → server takes an incoming request → looks for corresponding resource directly on a storage level and (assuming a file exists) responds with HTTP 200 OK status. That's how it works in a nutshell. What if prior to return a fi…