SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2011
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    iOS6 safari caching ajax on repeated calls, possible security risk

    Hi sitepoint, just wanted to share my findings with you.

    It started when I was working on my webapp this morning and I noticed ajax calls were getting the same results despite changes I'm making to mysql on the server. I concluded ios6 safari was caching the ajax results. A quick search found a stack overflow thread that confirmed my thoughts and showed a fix. The fix is to make the values in the $.ajax unique.

    Then I had a thought - how does safari know when a call is repeated with the same values?
    unless it is also caching the call itself?
    Wouldn't this mean a security risk because it would be caching username and passwords off a login with $.ajax ?

    relevant:

    thread I found
    is-ios6-safari-caching-ajax-results

    my thread
    if-ios6-safari-is-caching-ajax-calls-is-it-caching-passwords-security-risk

  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2008
    Location
    The Netherlands
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dunno if you use jQuery, but in the passed I have had caching problems also with AJAX calls. Not on iOs, but this had fixed my caching problem.

    $.ajaxSetup({ cache: false });


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •