Showing results for 
Search instead for 
Did you mean: 

Clearing users browsers cache

0 Kudos

Hello All,

Can you please help me in the below

I have created two cmssites Localhost9002:/us Localhost9002:/ca But in the same browser I am. Not able to switch between the both site if I switch from us to Canada store I can see Localhost9002:/ca but the Base store is of US store

I am. Unable to clear cache Please help me out Anyone can suggest me regular expression for? /clear=true also

0 Kudos

can you suggest me

Accepted Solutions (0)

Answers (1)

Answers (1)

Active Contributor
0 Kudos

Site detection is done from the CMSSiteFilter in your storefront extension. The default behaviour is to use the site from the session and only look up the site when it isn't available from the session or clear=true is in the query string.

You can change this behaviour so that it looks up the correct site on every request and I have done this before when doing the same thing as you where different sites share a single domain (and therefore share session cookies)

If you do this then you probably want to override the default ContextInformationLoader so that you only initialise the site if it has changed from the current session value.

0 Kudos

thanks its working fine with this approach