Caching for COS Hubspot websites


#1

Hello everyone

I develop websites on COS Hubspot and when optimizing page performance (Google Insight), caching source files called me poses problem. It will simply be enough to add some instructions on the file htaccess.

ExpiresActive on ExpiresDefault "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType video/mp4 "access plus 1 month" ExpiresByType text/x-component "access plus 1 month" ExpiresByType font/truetype "access plus 1 month" ExpiresByType font/opentype "access plus 1 month" ExpiresByType application/x-font-woff "access plus 1 month" ExpiresByType application/vnd.ms-fontobject "access plus 1 month" ExpiresByType text/css "access plus 1 year" ExpiresByType application/javascript "access plus 1 year" ExpiresByType text/javascript "access plus 1 year" ExpiresByType text/js "access plus 1 year" ExpiresByType application/x-javascript "access plus 1 year"

How to do on hubspot because this would greatly improve the score?

Any help would be appreciated, thank you!


#2

Hi Moadh,

Can you share the link to your Google Page Insights results? By default we cache all static images, css and JavaScript for 2 weeks.


#3

@boulter is this something we can do ourselves? We would like to extend the expiry for some external JS sources but not sure how to do so.