on ‎2018 Sep 12 1:13 PM
Hi,
I have created a multi-site.
When I view site one in say chrome or FireFox, then I see what I expect.
If I then open a new tab in the same browser to view site2 then I get a 404 error.
If I open a second browser and put the url for site 2 in I see what I expect.
If in browser 2 I then navigate to site 1 I get a 404 error.
If I go back to browser 1 and refresh site1 it works with no 404 error.
If I clear the browsers cache then I can navigate to site2, and I do not get a 404 error.
To sum it up, whatever is the first of the multi sites I navigate to in any browser (and my cache is cleared) I can only view that site (say site1) and unless cache is cleared I cannot view site2 without getting a 404, unless I clear cache first.
I have set up a separate instance of Hybris and used $ instal.sh -r b2c_acc Both the apparel demo store and the electronics demo store work, with the same problem as above. If I navigate to apparel site first i get a 404 on the electronics site and so on as above.
Is there any way to resolve this caching issue.
Request clarification before answering.
That's expected behaviour!
The first request initializes the session and after that, the session is bound to a specific site. (This also explains why after a cache clear you can use the other site, because clearing it also deletes all cookies which in turn means a new session for the next request)
I usually test a second site in a second browser or in an incognito / private browsing window.
And a browser extension to quickly clear cookies ( JSESSIONID in particular) is also very helpful.
You could try adding the parameter clear=true to your URL, this should allow you to switch the site without deleting cookies. I'm not sure how well this works, though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked perfectly adding ?clear=true to my urls
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.