Caching different types of content at different lengths.

#1
How would we setup caching for different types of content.

Lets say content that is 1Year old cache it for weeks.
Lets say navigation pages have a 1-2 hr cache
Lets say home page is cached 1-2 minutes
Lets say content viewed by members is fresh.

Would you setup cookie identifiers for different content and in .htaccess create multiple cache-control rewrites?
Is there a preference for order? For example older cache rewrites at the top and fresher cache rewrites towards the bottom?

Is there an easier way to do this?
 

mistwang

LiteSpeed Staff
#2
If the type of page can be detected via rewrite rule, you can use rewrite rule to set the expire time.
for the rewrite rule order, it does not matter.
 
Top