seo - Apache How to avoid setting cookies for static files
天蓬老师
天蓬老师 2017-05-16 17:03:20
0
2
925

Baidu Webmaster Tools Optimization Tips:

cookie越小越好,而且对于静态文件需要避免设置cookie

server

Win64 Apache2.4.x PHP5.5.x

htaccess

max-age has been enabled in htaccess

<IfModule mod_headers.c>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
<FilesMatch "\.(html|htm|php|shtml)$">
Header set Cache-Control "max-age=86400"
</FilesMatch>
</IfModule>

How can we achieve this optimization of Baidu Webmaster Tool Tips?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
某草草

Place static files in different domains to avoid~

为情所困

/q/1010000000252213/a-1020000000420919

Static files should be stored on subdomain names. If not adding www pollutes the main domain name, it must be divided into independent domain names for storage.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template