$.Ajax with Method type Get and "cache: false" sometimes caches the result
Reported by
lv.assas...@gmail.com,
Aug 18 2017
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.49 Safari/537.36
Steps to reproduce the problem:
Read the Other comments to see the more in detail description of the environment
1. Select value/s in 1st dropdown
2. Select value/s in the 2nd dopdown
3. Select more then 1 value in the 3rd dropdown
4. Click Search
5. See that the 2nd dropdown is empty (Passed)
6. Change the value in 2nd dropdown
7. See that the 3rd dropdown gets cleared (Passed)
8. Select a single value in 3rd dropdown
9. Click search
10. See if both 2nd and 3rd dropdown values are prefilled (Failed)
What is the expected behavior?
Both dropdowns would be prefilled.
Note - that on Reload of the page via F5 - both dropdowns gets prefilled
What went wrong?
The ajax call got the result from the 1st time user clicked on Search - and therefore the 2nd dropdown was empty - while on page reload by F5 ajax call received the actual result and not the cached one.
All three ajax get calls had the cache: false setted up - so it should not have been cached.
Did this work before? N/A
Chrome version: 59.x Channel: stable
OS Version: Server 2016
Flash Version: Not applicable
I have 3 multi select dropdowns and a Search button which returns same page with the same already filled dropdown - but includes the search results in the buttom
the 1st one has to be selected to get the starting values of the both rest of dropdows
the 2nd one is optional - and it allows to filter the values for the 3rd drop down - and also clears the 3rd dropdown selected values on change.
the 3rd one is also optional but if I select more then 1 value - then the 2nd dropdown gets disabled.
all 3 dropdows has the JQuery Ajax requests with logic like the one bellow
$.Ajax({
cache: false,
url: URLhere
}).done({
// Some stuff here
});
Sorry - but due to the security reasons I am not allowed to explain the code in more depth.
,
Aug 21 2017
@ lv.assassin.lv.91: Thanks for filing the issue! Could you please provide us any sample html/JS file to triage the issue from test team end. Thank You!
,
Aug 21 2017
If you can't disclose any more, please try the followings: - Try Firefox, Edge, etc. to see if they behave in the same way as Chrome or not - Open the DevTools (Inspector) and see the network panel to see that multiple entries are shown for each of the dropdowns. IIUC, jQuery is using some hack to realize loading bypassing cache. I'd like to check what's happening at jQuery level and what's wrong with Chromium.
,
Aug 21 2017
On IE I can say that it caches even upon reload - while I can't check what about Edge (There is no edge on Windows Server 2016), but tomorrow I'll try it on Firefox.
,
Aug 21 2017
Thank you for providing more feedback. Adding requester "rbasuvula@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 23 2017
Thanks. Adding Needs-Feedback again.
,
Oct 11 2017
As there is no update from user frommore than 30 days ...closing this issue. Please raise a new issue if issue is still seen in latest chrome stable . Thanks! |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by tkent@chromium.org
, Aug 20 2017