English 中文(简体)
我如何控制?
原标题:How do I cache control?

How do I get my website to save images to clients computer and use them, not redownload them every page reload?

我试图派头(“Cache-Control:max-age=3600”),但这没有效果。

问题回答

你们需要的是影像文件,而不是你的超文本文件。 只有当档案实际由硬拷贝提供时,才能使用<代码>标题<<>代码>代码>。 如果是静态档案,则检查贵网站选择服务器的文件。

还考虑发送header和, ETags





相关问题
Prevent IE caching

I am developing a Java EE web application using Struts. The problem is with Internet Explorer caching. If an user logs out he can access some pages because they are cached and no request is made. If I ...

Explanation for expires header

I have a joomla application working on Apache.To improve site performace we have written a .htaccess file to root of the application with setting a far future expires header to all the static content. ...

How does SO s form remember previous input values?

I ve noticed that the Title or Body part is remembered if I come back to the Ask Question page by pressing Back button of my browser. This feature is available in all browsers I tested, but doesn t ...

Why do firefox/chrome show a different page than IE8?

When I look at this published Google Docs document, I see the latest version with Firefox and Chrome, but an older version with IE8. Also, screen-scraping it via PHP/Curl gives me an older version. ...

Stop browser from filling textboxes with details

I ve run into a really annoying problem, and I m hoping it s just a setting I ve missed. I ve got an ASP.NET application which allows users to enter their username/password in various places (e.g. ...

Google App Engine: localhost browser caching?

I m developing with GAE on my own machine. It was pretty fast, until I added CSS and images, at which point the page loads much more slowly. I suspect that the browser isn t caching anything, perhaps ...

ASP.NET MVC 2 RC Caching Problem

Since upgrading from mvc 2 beta 2 to rc I m having trouble with an ajax submission in Internet Explorer. Upon carrying out a jquery form post, the function returns a url to a controller action. This ...