Author Topic: ExpiresByType rewrite script?  (Read 2051 times)

Jimbob

  • Newcomer
  • *
  • Posts: 1
    • View Profile
ExpiresByType rewrite script?
« on: October 05, 2011, 08:37:18 am »
Can anyone show me how to leverage browser cache on zeus? trying to get my site page speed up and i need to cache specific images in my header and footer?

karthy

  • Administrator
  • Wizard
  • *****
  • Posts: 112
  • karthy
    • View Profile
    • netic.dk
    • Email
Re: ExpiresByType rewrite script?
« Reply #1 on: October 05, 2011, 05:47:45 pm »
Hi

For a start, please read http://www.mnot.net/cache_docs/ for good hints on how the different http headers plays together. There are plenty other articles on the net about html and caching, so it is worth spending a few minutes to study them.

When you have done that, then you can "fix" your site by adding a response rule (not requst rule!) that adds the required headers (Expires and Last-Modified) to the reponse if the url matches a pattern of if the content type is of certain types.

Did this help you along or do you need more specific guidance?

Best regards,
Karsten