Caching different types of content at different lengths.

Discussion in 'LiteSpeed Cache' started by ms_services, Apr 10, 2014.

  1. ms_services

    ms_services New Member

    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?
  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. ms_services

    ms_services New Member

    Thank You. That's helpful.

Share This Page