Optimize site speed
I'm trying to optimize the load speed for my sitehttp://www.gnrconstruction.eu and I'm stuck on 2 issues
"The following inline script blocks were found inhttp://www.gnrconstruction.eu/ between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.
Inline script block #1
"The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:
http://www.gnrconstruction.eu/application/files/cache/js/058ca8e246... (4 hours)
http://www.gnrconstruction.eu/application/files/cache/js/666de6f7ec... (4 hours)
http://www.gnrconstruction.eu/updates/concrete184.108.40.206/concrete/js/j... (4 hours)"
Do anyone have any suggestions please? All the other tests are ok.
For issue No2: You can add some code to your .htaccess to define lifetime of certain cacheable objects.
I've got this in one site:
# Set up 31 days caching on commonly updated files <FilesMatch "\.(xml|txt|html|js|css)$"> ExpiresDefault A2678400 Header append Cache-Control "proxy-revalidate" </FilesMatch>
Which will set 31 days lifetime for xml/txt/html/js/css files. Only makes sense for a "finished" site where no big changes in CSS and JS happen every day.