1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Merge pull request #656 from jasonvarga/patch-2

Only serve statically cached files on GET requests for Statamic
This commit is contained in:
Matt Stauffer
2018-10-23 11:04:25 -04:00
committed by GitHub

View File

@@ -48,7 +48,7 @@ public function isStaticFile($sitePath, $siteName, $uri)
*/
public function frontControllerPath($sitePath, $siteName, $uri)
{
if ($this->isActualFile($staticPath = $this->getStaticPath($sitePath))) {
if ($_SERVER['REQUEST_METHOD'] === 'GET' && $this->isActualFile($staticPath = $this->getStaticPath($sitePath))) {
return $staticPath;
}