on 09-11-2018 9:02 PM
Hello,
I have a banner in the storefront and if I go delete the banner from back office / cms cockpit the change is not reflecting in store front until I clear the cache.
How do I clear the cache so that I don't need to manually clear the cache when I delete the banner?
Thanks in advance.
Thanks for your response Ashok. Let me try the option that you provided.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is many way to not cache content in browser and you can use them. Ex.
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
but before using these. could you please debug your code and check, when you refreshing page, request is coming on your component controller or not.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Luke - Thanks for your response. I didn't expect the answer from you like that. I know if we use Incognito then it will work. My question was how do make sure it will work in all the browsers without any caching. Is there some thing on server side or client side in the code we can set some parameter to not cache the content?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SasiReddy,
You could try using Incognito Mode on your browser. The cookies and cache are deleted when you close the Incognito Window.
Regards,
Luke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
3 | |
1 | |
1 | |
1 | |
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.