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

  • Home
  • SEARCH
  • 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 281369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:11:50+00:00 2026-05-12T05:11:50+00:00

I am using jQuery.ajax ( http://docs.jquery.com/Ajax/jQuery.ajax ) to inject the contents of a different

  • 0

I am using jQuery.ajax (http://docs.jquery.com/Ajax/jQuery.ajax) to inject the contents of a different web page into the current page. Think of this as a “preview” window. jQuery has an optional cache argument which works great at loading the contents from the cache instead of requesting the same page again.

My problem is that the contents that are being injected can be edited from a different location. When this happens, I want to invalidate the cache on the browser so that the next time the content of the page is requested, jQuery will request the page instead of using the cache. I could set the cache argument to false but then no content will be ever cached. I need content to be cached and only re-requested when the source content has been changed.

How can I invalidate the currently cached web page?

  • 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-12T05:11:50+00:00Added an answer on May 12, 2026 at 5:11 am

    In my opinon this is not possible. Assume that you call update.php using the AJAX call. Now everytime you want to use the cached version. But once in a while you want the uncached version. You have to inform your site to use the uncached version. Thus, you may need another parallel script which checks if ajax should fetch the cached or uncached version of update.php which basically defeats your purpose.

    The way you can achieve this I think is using E-tags:

    http://en.wikipedia.org/wiki/HTTP_ETag

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

Sidebar

Related Questions

I'm using this dialog: http://docs.jquery.com/UI/Dialog To open dialog I do it this way: $('a.openModal').live(click,
If I navigate here: http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js I download 70k using Firefox 3.6.3 and I can
When using the jQuery validation plugin (http://docs.jquery.com/Plugins/Validation/validate): I want the following behavior: Validate as
I was reading this http://blog.platformular.com/2012/03/20/load-google-chart-by-ajax-using-asp-net-mvc-and-jquery/ and this https://google-developers.appspot.com/chart/interactive/docs/gallery/areachart . How can I create an
I'm using jquery autocomplete <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script> <script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js'></script> Everything is working Ok., but now
I'm using jQuery to make an Ajax call using an Http Post in ASP.NET
I've used the exact files from this tutorial: http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/ The ideea is to submit
I am using jQuery ajax to pass a string array to a page method.
I want to make this kind of window using CSS, JQUERY, AJAX, OR JAVASCRIPT
I am using the FullCalendar jQuery plugin: http://arshaw.com/fullcalendar/ I am also using the example

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.