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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:21:23+00:00 2026-05-12T21:21:23+00:00

I have a WCF service in an ASP.NET AJAX app that is returning json.

  • 0

I have a WCF service in an ASP.NET AJAX app that is returning json. Im using MS AJAX and the client PageRequesManager to run the service after each endRequest for any partial page updates. The user has a form, they update data and submit and the service needs to grab the latest data. When I debug using FF and FireBug, everything works like a champ. Exactly the way I coded it, however when I run the app in IE, surprise!!! The initial call is current, but subsequent calls were not returning new fresh data. I verfied by adding a record and then doing a “.length” on the JSON object. It should have incremented by 1. I was trying to do some limited debugging using IE Developer Toolbar and Fiddler {which I really don’t understand yet}, but I saw a button in the Developer Toolbar to clear the browser cache. I gave it a shot, and kaboom!!! IE starts working as I would expect. I did this one time on my local developer box and it worked, but for how long who knows?? and What can I possibly do for the users of this application? Can I force IE to somehow ‘get-latest’ if you will? This app of course, is intended to run in IE. Most of the users have likely never even heard of FireFox unfortunately. Has anyone had a similir problem? Any ideas would be appreciated. I didn’t post any code as I am not near the source, and basically its ABC plain vanilla javascript. I code similiar to Javascript:The Good Parts by Crockford if thats any indication of quality.

Thanks for any ideas,
~ck in San Diego

  • 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-12T21:21:24+00:00Added an answer on May 12, 2026 at 9:21 pm

    I assume your method is using the WebGetAttribute on your service method? This equates to an HTTP GET verb which will be cached according to browser defaults if no caching headers are specified by the server in the response.

    You have two options:

    1. If you’re using ASP.NET integrated service hosting (i.e. AspNetCompatibilityAttribute) you can use the HttpRequest::Cache property to set the caching options for the response using the various methods of HttpCachePolicy.
    2. If you’re using/want to use “pure” WCF, you can set the ETag and/or LastModified properties of OutgoingWebResponseContext via WebOperationContext::Current::OutgoingResponse. More importantly though you can add the Cache-Control header to the Headers collection.

    Here’s a great article that contains everything you probably ever need to know about HTTP caching in case you need it.

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

Sidebar

Related Questions

I have a WCF service that I access fram Javascript using AJAX and JSON.
I have a WCF service that I need to call in a ASP.NET web
I have an ASP.NET page that calls to a WCF service. This WCF service
I have an asp.net 4 application that hosts a WCF REST service via WebServiceHost...
We have a simple ASP.Net WCF Ajax enabled web service which is called via
I have a WCF Service hosted as Windows Service and client is an ASP.Net
I have a WCF service (over a webHttpBinding ) using ASP.NET 4/IIS 8 and
I have a WCF web service that uses ASP.NET session state. WCF sets a
We have a ASP.NET application running and i have added a WCF Rest service
I have ASP MVC 3 application. I created WCF REST JSON Service and added

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.