is there anything I could add to make it better?
Not add, but remove all the occurrences of <ifModule>
. You only need to run that once, to check the module exists on the server. Once you have established that it does, remove ifModule
. Otherwise, you will be wasting system resources constantly checking for something you already know exists.
The web-pages are all external to your site and you have no control over setting the expired period.
To get round this you could try this:
$tmp = file_get_contents('External_file.js');
echo '<script>' .$tmp .'</script>';
// similar for the Css files
Edit:
I forgot ti add that I am far from being a “Super Guru”, I just searched for a solution
thats a script though… not for the .htaccess thanks! @ Technobear after deleting “ifModule” now 2.01sec loading time!!! wow! (it was 4,9)
Try moving all your JavaScript files to just above </body>
and see if that makes a difference.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.