L
L
Little_Toky2016-10-05 22:28:58
Browsers
Little_Toky, 2016-10-05 22:28:58

Will $.ajax with cache=false disable caching in Opera?

My task is to make sure that the request is not cached. The most intrusive caching in Opera. From what I read on the topic, I chose the 2 simplest options.
1) send along with the request some changing number. Random or date. Then the request is different every time and, accordingly, there is no caching. But somehow this is not zen.
2) set cache=false in the properties of the ajax request. But I did not understand whether this would lead to a solution to the problem in the Opera. There is no way to test right now. Can anyone tell me if the second method works? Whether correctly I understand a situation with the first method? Will it work? Is he really a jerk?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
VoidVolker, 2016-10-06
@VoidVolker

2 = 1. That is, there just time will be added to the request:.../request?_=1234567890

N
Nazar Mokrinsky, 2016-10-06
@nazarpc

Normally, it is enough to send the correct headers from the server and no changes need to be made on the frontend

L
Little_Toky, 2016-10-06
@Little_Toky

Thanks a lot for the replies. I confess, I work more with the front, I understand the back worse. I read about this about everything yesterday - people write that some kind of ass is there with headlines, the Opera ignores them.
Why do I need this: The editor of the magazine uploads articles. The user requests a list of articles, but does not see the newly added article in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question