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

The Archive Base Latest Questions

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

I have created simple .aspx page which queries a database for some live data

  • 0

I have created simple .aspx page which queries a database for some live data and then returns a JSONP (or at last a JSONP-like) feed of Content-Type application/json; charset=utf-8

Here is the format of the output, more or less:

jsonp1307643489579([
  ["12345","Text Here","99999","More Text Here","True","False","7/31","1"...],
  ["12345","Text Here","99999","More Text There",...]
]

Then comes a JQuery .getJSON call:

var url = "myURL.aspx?id=123&callBack=?";
$.getJSON(url, null, function(msg) { etc etc.

It all works fine except for the following. In my development environment and on my local server, fresh data come back live every time. But on the production web server, the data stubbornly caches until I recycle the IIS application pool (!)

Some things I have tried without success.

1/ cache: false in ajaxSetup didn’t work.

2/ Turned off output caching in the web.config.

2a/ OutputCache Location=”None” in the aspx page declarations doesn’t do it.

3/ Added random unique querystring data to the .getJSON(url) call. Seeing as how we are appending a unique callback param to each call, I guess this was already happening anyway.

Any idea why my web server is holding on to these cached application/JSON files?

EDIT: i am viewing the actual .aspx feeds as they come down from the web server, and they are cached there. So to my understanding, it’s a web server caching issue and not necessarily a JQUERY caching issue.

  • 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-23T04:33:34+00:00Added an answer on May 23, 2026 at 4:33 am

    It turned out that it was indeed the .ASPX server page caching the data. For all of the focus on the client-side AJAX stuff, I overlooked the obvious.

    So I added a litany of preventative measures on the server side (Response.ExpiresAbsolute, et cetera) and it did the job.

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

Sidebar

Related Questions

I have created a simple wcf service which used the WCF Service Library template.
I have created a simple Asp.Net custom control which automatically combines all the correct
I have a requirement to create a simple database in Access to collect some
I have created a class called BasePage which inherits System.Web.UI.Page. On this page I've
I have this simple ASP.NET page here: <%@ Page Language=C# AutoEventWireup=true CodeBehind=Tree.aspx.cs Inherits=CoconutTree.One %>
I have a Linq query that returns an anonymous type, which I then use
I have created a simple class to filter out data from a data stream.
I have created a project with a simple RDLC report in ASP.NET which when
I have created a simple ASP.Net application, where first page accepts an input and
I have created a simple grid of divs by left floating them and an

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.