How to set expiration for a specific file?

Discussion in 'Apache' started by jasongr, Jun 30, 2008.

  1. #1
    Hi,

    I have the following configured on my httpd.conf file:

    ExpiresActive On
    ExpiresByType application/x-shockwave-flash "access plus 1 week"

    This works fine and it gives the Flash movies an expiration of 1 week.
    I have one Flash movie for which I want to give an expiration of 1 day.
    Is there a way to override the expiration rule above for a specific file?
    If so, how do I do it?

    regards
    Jason
     
    jasongr, Jun 30, 2008 IP
  2. IGiveMoney

    IGiveMoney Peon

    Messages:
    116
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    maybe set a cookie for the specific file on the clients side?
     
    IGiveMoney, Jun 30, 2008 IP
  3. jasongr

    jasongr Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think the solution needs to be in the apache configuration file.
    Apache has a very strong capabalities and I am sure there is a way to set the expiration settings for a specific file
     
    jasongr, Jun 30, 2008 IP