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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:10:55+00:00 2026-06-08T19:10:55+00:00

I have this bizarre issue with Chrome. It quite often appears to cache PUT

  • 0

I have this bizarre issue with Chrome. It quite often appears to cache PUT requests.

The Details: I have an app using backbone.js and when trying to persist some changes to a model (backbone automatically generates a PUT request), Chrome just wont send that request to the server. It works perfectly fine in Firefox and IE (haven’t seen the issue in Safari so far).

Here’s a screenshot from the Chrome developer tools’ Network tab. As you can see, the response for the PUT request is being returned from cache (the request doesn’t hit the server!!)
Chrome caches PUT request

Here’s a screenshot of the header details of that same request. Once again, it’s evident that Chrome doesn’t bother sending the PUT request to the server.
Chrome cached PUT request header

The payload of the request is JSON data. Any thoughts as to why this is happening / what I’m doing wrong?

UPDATE: Chromium has confirmed that this is indeed a bug on it’s end (thanks Jan Hančič).

TEMPORARY SOLUTION
I ended up overriding Backbone.sync method and appending a timestamp to the querystring of PUT, POST and DELETE requests so that they are always unique:

if(!options.data && model && (method == 'create' || method == 'update' || method == 'delete')) {
    params.url += (params.url.indexOf('?') == -1 ? '?' : '&') + '_=' + new Date().getTime();
}
  • 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-06-08T19:10:56+00:00Added an answer on June 8, 2026 at 7:10 pm

    I use extra parameter to avoid caching:

    url += '?_dc=' + Math.random().toFixed(20).replace('.', '');
    

    I don’t interpret this parameter on server side.

    EDIT: Besides of chrome there are a lot things could cache requests – user’s proxy server for instance. I think additional query parameter is a good solution to keep out of caching.

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

Sidebar

Related Questions

This is going to sound quite bizarre. I have one ASP .NET MVC 2
I have a scaling problem in a PhoneGap app. My issue is very similar
I have this bizarre problem. I'm making a checklist program with XCode and I'm
I know this sounds bizarre, but it is true. I have a simply WPF
I'm tearing my hair out over this issue. I have javascript code that looks
We have a bizarre and very infrequent issue where people can't log off the
I have a bizarre problem using Qt Creator that I can't reproduce with Visual
Ok this is a bizarre issue... rather than posting lots of code I will
This is bizarre, but I am hoping someone can help me out. I have
I have a rather bizarre situation, and it's not the first time I this

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.