Try to execute below command and try it in magento root directory.
$ rm -rf pub/static/frontend/* pub/static/adminhtml/* var/cache/ generated/* var/page_cache/ var/view_preprocessed/ var/composer_home
$ php -dmemory_limit=6G bin/magento setup:static-content:deploy -f
In above code $ rm -rf
command delete your pub/static
& var/cache
.
For more reference you can check This link
Edit :
Make sure your configuration looks like this:
Stores > Configuration > General > Web:
Base URLs:
Base URLs (Secure):
- Secure Base URL: https://www.yourdomain.com/
- Secure Base Link URL: {{secure_base_url}}
- Use Secure URLs on Storefront: Yes
- Use Secure URLs in Admin: Yes
- Enable HTTP Strict Transport Security (HSTS): Yes
- Upgrade Insecure Requests: Yes
Edit :
It might be a chance Static content signing problem because
Static content signing is a Magento feature that allows you to invalidate the browser cache for static resources. Magento accomplishes this by adding a deployment version to the URL of static files .
The following is an example of a URL signed with a version:
http://magento2.com/pub/static/version1475604434/frontend/Magento/luma/en_US/images/logo.svg
When you run the command setup:static-content:deploy to deploy static content, Magento automatically changes the deployment version. This changes the URL of the static files and forces the browser to load the new version of the files.
For that you need to change the setting of Static content signing under
Stores > System > Configuration > Advanced > Developer > Static Files Settings.
Set to NO
And then run below command.
$ rm -rf pub/static/frontend/* pub/static/adminhtml/* var/cache/ generated/* var/page_cache/ var/view_preprocessed/ var/composer_home $ php -dmemory_limit=6G bin/magento setup:static-content:deploy -f
Then check it might be work.
For more reference check DevDocs links
I hope it helps!