Skip to main content
added 100 characters in body
Source Link
B00MER
  • 8.3k
  • 2
  • 21
  • 49

I was able to improve my gtmetrix rating a lot by adjusting the according widgets expirations, but I can't get rid of the last few, among them fancybox.gif (and the ones below)

https://verify.authorize.net/anetseal/seal.js ...ssl.google-analytics.com/ga.js ...static.hotjar.com/c/hotjar-163991.js?sv=5 ...s3.amazonaws.com/downloads.mailchimp.com/js/goal.min.js .../www.yafsparkle.com/skin/frontend/blacknwhite/default/images/fancybox/fancybox_loading.gif ...verify.authorize.net/anetseal/images/secure90x72.gif*

my htaccess looks like this, so the gif is included. Any ideas how I get rid of the remaining ones?

-- EXPIRES CACHING -- ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType text/javascript "access 1 week" ExpiresByType application/pdf "access 1 month" ExpiresByType application/javascript "access 1 week" ExpiresByType application/x-javascript "access 1 week" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access plus 1 month"

EXPIRES CACHING

1 Month for most static assets

<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$"> Header set Cache-Control "max-age=2592000, public"

-- EXPIRES CACHING --
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType text/javascript "access 1 week"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 week"
ExpiresByType application/x-javascript "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access plus 1 month"
</IfModule>
## EXPIRES CACHING ##


# 1 Month for most static assets
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>

I was able to improve my gtmetrix rating a lot by adjusting the according widgets expirations, but I can't get rid of the last few, among them fancybox.gif (and the ones below)

https://verify.authorize.net/anetseal/seal.js ...ssl.google-analytics.com/ga.js ...static.hotjar.com/c/hotjar-163991.js?sv=5 ...s3.amazonaws.com/downloads.mailchimp.com/js/goal.min.js .../www.yafsparkle.com/skin/frontend/blacknwhite/default/images/fancybox/fancybox_loading.gif ...verify.authorize.net/anetseal/images/secure90x72.gif*

my htaccess looks like this, so the gif is included. Any ideas how I get rid of the remaining ones?

-- EXPIRES CACHING -- ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType text/javascript "access 1 week" ExpiresByType application/pdf "access 1 month" ExpiresByType application/javascript "access 1 week" ExpiresByType application/x-javascript "access 1 week" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access plus 1 month"

EXPIRES CACHING

1 Month for most static assets

<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$"> Header set Cache-Control "max-age=2592000, public"

I was able to improve my gtmetrix rating a lot by adjusting the according widgets expirations, but I can't get rid of the last few, among them fancybox.gif (and the ones below)

https://verify.authorize.net/anetseal/seal.js ...ssl.google-analytics.com/ga.js ...static.hotjar.com/c/hotjar-163991.js?sv=5 ...s3.amazonaws.com/downloads.mailchimp.com/js/goal.min.js .../www.yafsparkle.com/skin/frontend/blacknwhite/default/images/fancybox/fancybox_loading.gif ...verify.authorize.net/anetseal/images/secure90x72.gif*

my htaccess looks like this, so the gif is included. Any ideas how I get rid of the remaining ones?

-- EXPIRES CACHING --
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType text/javascript "access 1 week"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 week"
ExpiresByType application/x-javascript "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access plus 1 month"
</IfModule>
## EXPIRES CACHING ##


# 1 Month for most static assets
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
Source Link

can't get rid of fancybox.gif "Add expires headers" via htaccess?

I was able to improve my gtmetrix rating a lot by adjusting the according widgets expirations, but I can't get rid of the last few, among them fancybox.gif (and the ones below)

https://verify.authorize.net/anetseal/seal.js ...ssl.google-analytics.com/ga.js ...static.hotjar.com/c/hotjar-163991.js?sv=5 ...s3.amazonaws.com/downloads.mailchimp.com/js/goal.min.js .../www.yafsparkle.com/skin/frontend/blacknwhite/default/images/fancybox/fancybox_loading.gif ...verify.authorize.net/anetseal/images/secure90x72.gif*

my htaccess looks like this, so the gif is included. Any ideas how I get rid of the remaining ones?

-- EXPIRES CACHING -- ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType text/javascript "access 1 week" ExpiresByType application/pdf "access 1 month" ExpiresByType application/javascript "access 1 week" ExpiresByType application/x-javascript "access 1 week" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access plus 1 month"

EXPIRES CACHING

1 Month for most static assets

<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$"> Header set Cache-Control "max-age=2592000, public"