views:

150

answers:

2

In an effort to tell a browser's cache how to treat my site, I wanted to write some cache control rules in the header. There is a great resource here, but I cant seem to find the correct cache control code for my situation.

Because my website is static, I want the browser to always keep the data in its cache. BUT, the pages that do change (portfolio,blog) I want to be cached with an expiration of 3600 seconds.

Anyone know how to do this correctly?

A: 

Great looking site!

That resource you mention is a good one. Here is another that may help you.

Bart
A: 

Since you're using a hosting provider, I assume you can't control the actual HTTP headers? Instead, you can use <meta> tags to tell the browser what to do on a page-by-page basis.

As for headers, I'd rather just read straight from the horses mouth: see section 14.9 in HTTP 1.1 Headers specification.

Dolph