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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:16:35+00:00 2026-05-22T02:16:35+00:00

I have an ajax call (JSONP) using JQuery with GET method. I think because

  • 0

I have an ajax call (JSONP) using JQuery with GET method. I think because I use GET, it will leave the url along with the parameters in the browser history. So, how do I make it don’t save in browser history?

Will Jquery.ajax property “cache” set to false work?

please advice.


Thanks for all the answers & ideas

The reason I ask about the history thing is that I use the ajaxp for login (with password). My PM is so worry about leaving trace in the history (by default or anything like firebug).
Thus, i want to find out how to deal with it. Of course, now I realize browser by default will not track the ajaxp, but any plug-in may leave a trace.

At last, my solutions are:

1) Set the server response with no cache.

2) I make it two trips. The first ajax asks the server for a key&value, then the JS uses the value for encrypting data and send back the encrypted data with the key in the 2nd call. JS will remove the value (or just keep it in the callback closure). The server will use the key to retrieve the value from the DB (or server cache, well I actually use mongodb). And then use the value to decrypt data and get the login & password.

Thanks guys.

  • 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-22T02:16:36+00:00Added an answer on May 22, 2026 at 2:16 am

    You can set your server side script to send headers that prohibit browsers and proxies from caching the page:

    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    

    The above headers were copied from PHP manual for session_cache_limiter.

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

Sidebar

Related Questions

I have the following code to make a jsonp call. var contacts; $.ajax({ url:
I have a website where an ajax call will get some Json data from
I have a jquery Ajax call function that I use to submit form to
I have a c# web service that I call using jquery ajax. It works
I'm using jQuery's $.ajax method to fetch data from a JSONP-compatible web service and
i have an ajax call $.ajax({ url: '<%=Url.Action(SaveDetails,Survey) %>', dataType: 'JSON', cache: false, data:
I have a jquery json ajax call and inside my success function I have
I'm currently using jquery ajax to call a pagemethod (which works great); $.ajax({ type:
I am calling a Page Method from JQuery as described here: http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/ This is
I am using a jQuery Ajax control from this site http://abeautifulsite.net/2008/03/jquery-file-tree/ I have it

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.