サーバ

ERROR: Out of memory の対応

production.ERROR: Out of memory (allocated 12582912) (tried to allocate 65536 bytes) {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Out of memory (allocated 12582912) (tried to allocate 65536 bytes) a…

サーバで圧縮して、ブラウザに渡す

サーバで圧縮してからレスポンスを返した方が表示速度が速くなるらしい。 いろいろ調べた結果、以下を実装した。 <IfModule mod_deflate.c> DeflateCompressionLevel 1 SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|ico)$ no-gzip dont-vary</IfModule> cd /etc/http…