Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:23:54+00:00 2026-06-17T19:23:54+00:00

I am running Apache httpd on Windows. I want to get Apache to make

  • 0

I am running Apache httpd on Windows. I want to get Apache to make index.html uncacheable – but only the home index.html, no other index.html files. This is what I have so far:

<Directory "D:\path\to\root">
   <FilesMatch "index.html$">
      Header set Cache-Control "max-age=0, must-revalidate"
   </FilesMatch>
</Directory>

It works – but works for all index.html files. How can I narrow this down to just the one index.html? Apparently I can use regex in Directory, but I this did not work:

<Directory ~ "D:\\path\\to\\root">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:23:55+00:00Added an answer on June 17, 2026 at 7:23 pm

    This works nicely:

    <Location /index.html>
       Header set Cache-Control "max-age=0, must-revalidate"
    </Location>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Running Apache httpd on Windows, what is the usual method / tool to update
Looking at the processes running for Windows XP it appears that Apache (httpd.exe) runs
I'm trying to get an Apache server running on my Cygwin setup to follow
I just installed apache (1.3.33) via cygwin running on Windows XP. I have the
Running Wamp 2.0 on Windows 7 64-bit with Apache 2.2.17 and PHP 5.3.4 I
I am running Apache HTTP server 2.4 on a Windows Server 2008 R2 machine
I have Apache 2.2 32bit server running on Windows 7 x64. I need to
What I want To get this guide to work http://blog.bigpixel.ro/2012/07/building-cc-applications-with-maven/ The Error I'm running
I have a Linux host running Apache and a Windows host running IIS. I
I have one apache httpd server running on a hostname: firsthostname I have another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.