最新分享 - iPlantoo,关注你的信息呈现!

Apache header cookie设置

01 1月 2019

 

# a2enmod expires
# a2enmod deflate

# vi /etc/apache2/sites-available/example.com.conf
# gzip html, css and js
AddOutputFilterByType DEFLATE text/html text/css application/x-javascript application/javascript

#启用过期header功能
ExpiresActive On
#缺省过期时间为“访问后的1天”
ExpiresDefault "access plus 1 days"
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpg "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
ExpiresByType image/vnd.microsoft.icon "access plus 1 months"
ExpiresByType image/x-icon "access plus 1 months"
ExpiresByType image/ico "access plus 1 months"
ExpiresByType application/javascript "now plus 1 months"
ExpiresByType application/x-javascript "now plus 1 months"
ExpiresByType text/javascript "now plus 1 months"
ExpiresByType text/css "now plus 1 months"

何为Joomla!

26 4月 2016

可视化网页制作软件红了几年之后,逐渐不能满足网站制作的要求。

第 1 页 共 2 页