Home  >  Article  >  Web Front-end  >  FAILED

FAILED

WBOY
WBOYOriginal
2016-06-24 11:56:301258browse

百度页面优化建议提示  

FAILED - (未设置max-age或expires) - http://www.xxxxxxx/10.jpg

一共有很多个这样的提示 
那我需要达到的效果就是让百度没有这个提示

查了下 虚拟空间  支持 ISAPI_rewrite伪静态

咨询了  虚拟空间商,所需要把文件设置为  httped.ini(放在空间根目录)

然后我在httped.ini文件里面写了如下代码
# BEGIN

Header set Cache-Control "max-age=2592000"

# END 

发现百度抓取之后还是跟原来一样的提示,也就是说我这个文件或者代码没有生效。

请问我应该具体怎么弄这个,谢谢!内啥 ,我的代码里面用的是html+css+js(不知道是不是这样说的)


回复讨论(解决方案)

哎呀  我X   是不是我来错地方了啊 

seo优化?

seo优化?



是啊  不过这个 应该搞web的都会的吧    

这个要在服务器上面去设置

http://jingyan.baidu.com/article/25648fc1a692d59191fd00a1.html

这个要在服务器上面去设置



服务器  是IIS的   支持伪静态的

http://jingyan.baidu.com/article/25648fc1a692d59191fd00a1.html




服务器是IIS的  支持伪静态,空间商说文件应该是  httped.ini的    但是不知道要在这个文件里面写什么。
你发的这个网址  我第一次就试过了的,不行。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn