1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Browser Caching: how to set Expires so a change is displayed if file is modified in the meantime?

Discussion in 'Apache' started by cup243, Jan 20, 2017.

  1. #1
    How do I set my htaccess file so that, when a file changes, that change is displayed when the file is viewed, despite Expires being set for a longer time?

    That is... I know I have to set for example: ExpiresDefault "access plus 1 month", but if the file changes in the meantime, that change is not visible.

    I don't understand why this isn't the case. In my own browser, unless I hit refresh, that change isn't visible.
    Should it be something of this sort? "modification plus 1 second" ?

    I understand there has to be a max-age, but if the file changes before it expires, how on Earth that change shouldn't be displayed?

    I have NOT found this specific question in here. Thanks a lot!
    cup243, Jan 20, 2017 IP
  2. cup243

    cup243 Member

    Likes Received:
    Best Answers:
    Trophy Points:
    SOLVED. Problem was I had removed ETags.
    cup243, Jan 21, 2017 IP