A
A
axblue2017-03-15 21:05:54
Google Chrome
axblue, 2017-03-15 21:05:54

How to solve the problem with ajax content loading in google chrome?

Hello. Most likely, the question is not quite correctly posed, because I do not know how to formulate it.
But the essence of the problem is:
There is a site, the layout is the same on all pages, only the content changes, I actually load the content with Ajax, but there are sections that I load without Ajax. Let's say I have the following chain of actions:
I go to the main page-> content is unloaded without ajax-> I go through the content card using ajax-> I press the back button in the browser, I go back to the main page, but I'm already loading the content with ajax. In this chain, everything is okay.
The problem arises when, when I navigate through the content card with Ajax, then I go to the section that is without Ajax , and then when I press the back button, I get this junk:b6d9d7a2b45143099f9d89976a7eb750.jpg
that is, the request is for some reason regarded as ajax and it displays pure data, without layout and views itself.
In other browsers, for some reason, there is no such trouble
. What could it be connected with, tell me? Please clarify if there is anything else you need to know.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-03-19
@dimonchik2013

content type check which server sends
explicitly sends text/html and not application/json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question