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 6019817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:28:34+00:00 2026-05-23T03:28:34+00:00

My PHP pages and HTML pages instantly reflect any change I make to them,

  • 0

My PHP pages and HTML pages instantly reflect any change I make to them, making it very easy to view my changes as I develop a page.

ASP pages never show any change on the first refresh, and only show their updated content after a 1-2 minute wait. This makes development extremely slow and frustrating.

Why does this happen? Is it simply a quirk of my hosting service that I will have to accept, or is there something I can do about it?

  • 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-05-23T03:28:35+00:00Added an answer on May 23, 2026 at 3:28 am

    Sounds more like a client problem than a code problem. I’m willing to bet the browser is keeping the page in the cache, instead of requesting a new page every time. You can test this by forcing a no-cache page refresh using CTRL-F5 (should work in most browsers).

    After that, you can prevent caching in a handful of ways.

    For classic asp:

    <%
        Response.Expires = -1
        Response.AddHeader "pragma", "no-cache" 
        Response.AddHeader "cache-control", "private, no-cache, must-revalidate"
    %>
    

    For ASP.NET markup:

    <%@ OutputCache Duration="-1" VaryByParam="none" %> 
    

    For ASP.NET code behind:

    Response.Expires = -1;
    Response.CacheControl = "no-cache";
    

    HTML (no guarantee browsers will honor meta tags)

    <head>
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="expires" content="-1">
        <meta http-equiv="cache-control" content="private, no-cache, must-revalidate">
    <head>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have 4 pages. They are very simple. index.php (WORKS) <html> <form action=upload.php
Recently and without any website code changes, a few of our dynamic PHP pages
I'm working on Ubuntu.(Linux) I want to display all .php pages to .html in
I have a site located at http://www.mySite.com . My html/PHP pages are located at
we are all familiar with embedding PHP scripts in HTML pages to do tasks
lets say i have two pages links.html & contents.php ... first page contains only
Some pages are showing the phpinfo() output (in HTML so not php -i )
Possible Duplicate: Avoid resending forms on php pages Index.html <form method=post action=demo.php> <input type=text
This is for basic HTML/PHP pages, no query strings, etc.. I have searched high
I need to get some part of html pages using php XPath query (sorry

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.