cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve Refresh issue need to hard refresh to load JavaScript

How to solve Refresh issue need to hard refresh to load JavaScript

I am new in magento2, I have developed project everything is fine but some browser has caching issue when load product details page (image or add to cart button ) not loading at the same time. then we need to hard refresh page (Ctr+shift+R) then Javascript and product details loaded on the server.

This issue happens only in Microsoft Edge and some chrome browser only 

how to solve this issue please help me.

 

 I am using

----------------------

magento2.3.2

PHP 7.2 

Microsoft Edge 44.18362.449.0
Os ubuntu 18.4
Apache2
 
 
3 REPLIES 3

Re: How to solve Refresh issue need to hard refresh to load JavaScript

Hi @chandan_kumar24

Have you flushed the cache using terminal?

php bin/magento cache:flush

And you should use production mode on the live. Magento use versioning for pub/static files.

I hope it will help you!

Re: How to solve Refresh issue need to hard refresh to load JavaScript

I enable production  mode after an upgrade and deploy, and flush same issue is happens 

Re: How to solve Refresh issue need to hard refresh to load JavaScript

Have you found any solution? I am experiencing the same issue.