I recently switched my web hosting to CentOS7 dedicated server. I uploaded JS, CSS, HTML files and they worked just fine but when I uploaded a latest version of .html and .css, the html file did update but for some reason .css remained the same. To make sure I visit domain.com/css/style.css and search for the new styles but they were not there. Also I've cache enabled and I did clear my browser cache and restart httpd/apache in my CentOS server.
Turns out it was mod_pagespeed saving site's cache. Delete them from /var/cache/mod_pagespeed/rname/* and /var/cache/mod_pagespeed/v3/*
Related
The custom domain I've been using (which is already linked to an App Service in Microsoft Azure Portal) is not loading the my current styles files (.css files). Actually, it's loading older versions of those files, which I didn't create (they've had been created previously by another employee).
Has someone experienced this same issue? If I go to the website created by the App Service, the .CSS loaded there is correct (the one I've created), but whenever I go to the custom domain linked with this website, the .CSS loaded is older.
Clearing the browser cache will work locally. However, other repeat visitors will have the same issue you are having. A global method would be to rename your CSS file. That will force the browser for repeat visitor's to load the new/ current CSS file.
ex. "style.css" --> "styles.css"
Rename the CSS file and don't forget to rename the meta link as well.
Try clearing browser cache memory. CSS files are often get cached in the browsers.
Is it possible in Drupal to make a copy of existing live website via CMS only and download it to my machine and then restore it in the other server? I read about
backup_migrate module
https://www.drupal.org/project/backup_migrate
but will it work for me when I don't have credentials to FTP? Does this feature include in the copy of the website all the resources/images/theme of the website, the css/scripts/icons files etc.?
You can get database dump for sure, but I'm not 100% sure about the files, so better try it out.
BTW how can you install backup & migrate if you don't have ftp access?
Also, if you have access to hoster's control panel probably there is an option to download the files.
When making back-up of files you can fine tune what files exactly you want to export. I.e. by default cache files are excluded from backup.
My website is loading same files with www and without www. I just deleted the file from file manager and its showing 404 which is fine but a different version of it is loading
https://ospreyhomes.ae/wp-content/uploads/2015/01/logo.png (Delete but loading over without www domain)
https://www.ospreyhomes.ae/wp-content/uploads/2015/01/logo.png (Deleted - 404)
How can i get rid of the https://ospreyhomes.ae/wp-content/uploads/2015/01/logo.png being accessed on internet. i have already deleted the file
Same things goes with these 2 files. File deleted but being accessed with url without www
https://ospreyhomes.ae/wp-content/uploads/2015/01/logo.png
https://www.ospreyhomes.ae/wp-content/uploads/2015/01/logo.png
Its almost happen to any file when you have cdn cache service enable like cloudflare. Make sure you clear your browser cache. Try F5. Even not working,Then try a proxy browser to see real-time status of file or disable cloudflare while editing files.
From my side,i see your file has been deleted.
I am trying out Roots.io start-up theme Sage. I've just installed and configured everything locally and everything seemed to install correctly. However I am having issues with the SASS and JS files loading. I have followed the docs and installed everything correctly but the stylesheets and JS files aren't loading correctly. https://roots.io/sage/docs/.
If I check my source, I see the files are being compiled into one stylesheet and js file under:
/wp-content/themes/themename/dist/styles/main.css
/wp-content/themes/themename/dist/js/main.js
However, these files aren't being picked up when the pages are loaded. These links are leading to 404 pages.
Do I need to install anything else? Am I doing something wrong?
Thanks in advance.
The files under the Assets folder are used instead, and dist folder is used to actually when releasing your product.
So, I have a strange issue with Drupal imagecache.
When I upload an image, the image is correctly stored in a folder, but imagecache doesn't generate the other cached images.
It doesn't work anymore after I moved the website from development server to the production environment.
The production server is IIS7.
All the "files" subfolder have both write/read permissions, imagecache module is supposed to create folders inside "files" folder.
The GD toolkit is correctly enabled (in Drupal report, imagecache module is correctly enabled). It is php 5.2.
thanks
Check out Imagecache's troubleshooting guide in the handbooks. In particular, check the logs for errors explaining where the process is breaking down.
Also, check the paths that are included in your pages and make sure they are still correct, now that you've moved the site to a production server. This issue has some more tips, specific to the path problem.
Finally, if none of that helps, check the issue queue. There are several issues related to IIS.
99% of the time when I have an issue with imagecache not creating images it has something to do with file system permissions. Verify that your web server is able to write to all of the files/imagecache directories recursively.