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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:33:50+00:00 2026-06-17T11:33:50+00:00

I created an aspx page and viewed it in Firefox and Chrome and it

  • 0

I created an aspx page and viewed it in Firefox and Chrome and it worked correctly, running the C# code. But when I make changes to the page (including deleting everything and serving up a blank page), both browsers continue to show the original compiled aspx page!

It appears that ASP.Net (the web server) is not recompiling despite changes to the aspx file. The only way to get it to recompile is to change web.config and then restart the web server!

I even added the following code, but it still loads the original page:

<script runat="server">
Sub Page_Load
    Random rd = new Random();
    Response.AddHeader("ETag", rd.Next(1111111, 9999999).ToString());
    Response.AddHeader("Pragma", "no-cache");
    Response.CacheControl = "no-cache";
    Response.Cache.SetNoStore();
    Response.Expires = -1;
End Sub
</script>

TEST I DID TO RULE OUT BROWSER CACHING:

  1. Created an aspx page and loaded it in firefox only (not in chrome)
  2. Changed the aspx file
  3. Loaded aspx again in firefox but got no changes
  4. Loaded it (for the first time ever) in Chrome and it still showed the old version!

Using Apache and Mono, not IIS

  • 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-17T11:33:50+00:00Added an answer on June 17, 2026 at 11:33 am

    This appears to be a Mono+Apache on Linux issue. It doesn’t see changes to pages that have been compiled. The only workarounds are:

    1. Restart Apache webserver (this causes it to see them as changed) – only takes about 2 seconds

    2. Delete the temporary files in “/tmp/www-data-temp-aspnet-0/” (This can be a bit buggy so #1’s a better choice)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created Aspx login page and ext js login form in it ExtJs code
I created dropdownlist in C# code. How to display this ddlist in aspx page?
I have created one aspx Page from that i need to access the property
I want to create a Dynamic aspx Page in current solution through code-behind..forexample i
I created an ASPX page with search controls to the left bound as controls
I've created an .aspx page that consists of many custom .ascx controls and I'd
I have created a web custom control and used within an aspx page. I
How we can add the silverlight project into a aspx page. I had created
I have created simple .aspx page which queries a database for some live data
I created a .aspx web page for SharePoint 2010 that uses JQuery to extract

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.