-1
我已經完全在PHP中開發了我的網站,現在當我測試我的網站的速度它slow.In谷歌網站速度測試「https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Ftrainsrunningstatus.net%2F」這顯示「利用瀏覽器緩存」。 請建議我如何提高我的速度。如何提高槓杆瀏覽器緩存
我已經完全在PHP中開發了我的網站,現在當我測試我的網站的速度它slow.In谷歌網站速度測試「https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Ftrainsrunningstatus.net%2F」這顯示「利用瀏覽器緩存」。 請建議我如何提高我的速度。如何提高槓杆瀏覽器緩存
除了這個htaccess代碼,沒有什麼不同之處了。根據你的文件我的你自己的過期列表。
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 hour"
ExpiresByType image/jpeg "access plus 1 hour"
ExpiresByType image/gif "access plus 1 hour"
ExpiresByType image/png "access plus 1 hour"
ExpiresByType text/css "access plus 1 hour"
ExpiresByType text/html "access plus 1 hour"
ExpiresByType text/x-javascript "access plus 1 hour"
ExpiresByType image/x-icon "access plus 1 hour"
ExpiresDefault "access plus 1 hour"
</IfModule>
## EXPIRES CACHING ##
我還需要提高我的網站的子頁面 - [https://trainsrunningstatus.net/running-status](https://trainsrunningstatus.net/running-status) –