Speed Test

Hello

Can somebody help me whit this problem:

Leverage browser caching for the following cacheable resources:

In htacces i have this, so i don't understand the problem.

Can i put an expired cache on a specific link, and how i do this..

Thx

DirectoryIndex index.html index.php

#
#Header append Vary: Accept-Encoding
#Header set X-Content-Type-Options "nosniff"
#
# order allow,deny
# deny from all
#SetEnv TZ Europe/Amsterdam
#
#FileETag None
#
# Header set Access-Control-Allow-Origin "*"
#
#
# Header unset ETag
# ExpiresActive on
# ExpiresDefault "access plus 1 month"
# #CSS
# ExpiresByType text/css "access plus 1 year"
# #Data interchange
# ExpiresByType application/json "access plus 0 seconds"
# ExpiresByType application/ld+json "access plus 0 seconds"
# ExpiresByType application/vnd.geo+json "access plus 0 seconds"
# ExpiresByType application/xml "access plus 0 seconds"
# ExpiresByType text/xml "access plus 0 seconds"
# #Favicon (cannot be renamed!) and cursor images
# ExpiresByType image/x-icon "access plus 1 year"
# #HTML components (HTCs)
# ExpiresByType text/x-component "access plus 1 month"
# #HTML
# ExpiresByType text/html "access plus 1 month"
# #JavaScript
# ExpiresByType application/javascript "access plus 1 year"
# #Manifest files
# ExpiresByType application/manifest+json "access plus 1 year"
# ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
# ExpiresByType text/cache-manifest "access plus 0 seconds"
# #Media
ExpiresByType audio/ogg "access plus 1 month"
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
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"
# CSS
ExpiresByType text/css "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
# ExpiresByType video/mp4 "access plus 1 month"
# ExpiresByType video/ogg "access plus 1 month"
# ExpiresByType video/webm "access plus 1 month"
# #Web feeds
# ExpiresByType application/atom+xml "access plus 1 hour"
# ExpiresByType application/rss+xml "access plus 1 hour"
# #Web fonts
# ExpiresByType application/font-woff "access plus 1 month"
# ExpiresByType application/font-woff2 "access plus 1 month"
# ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
# ExpiresByType application/x-font-ttf "access plus 1 month"
# ExpiresByType font/opentype "access plus 1 month"
# ExpiresByType image/svg+xml "access plus 1 month"
#CSS w/gzip
#
# ExpiresDefault "access plus 1 year"
# ForceType text/css
# Header set Content-Encoding: gzip
# Header set Cache-control: private
#
#JavaScript w/gzip
#
# ExpiresDefault "access plus 1 year"
# ExpiresByType application/javascript "access plus 1 year"
# ForceType text/javascript
# Header set Content-Encoding: gzip
# Header set Cache-control: private
#
#
#
#
#AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml
#
RewriteEngine on
RewriteCond %{HTTP_HOST} ^176\.126\.202\.124
RewriteRule (.*) http://www.zenon.ro/$1[R=301,L]
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* ? [F,L]
Options -MultiViews
#Redirects go here
#RewriteCond %{REQUEST_URI} .*\/SEO_URL\.html
#RewriteRule ^.*$ http://www.domainname.com/NEW_SEO_URL.html[L,R=301]
#AddEncoding gzip .gz
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} \.(js|css)$
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [QSA,L]
RewriteCond %{REQUEST_URI} ^api/(.*)$ [or]
RewriteCond %{REQUEST_URI} .*/api/(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*api/(.*)$ api.php?_d=$1&ajax_custom=1 [L,QSA]
RewriteCond %{REQUEST_URI} \.(png|gif|ico|swf|jpe?g|js|css|ttf|svg|eot|woff|yml|xml)$ [or]
RewriteCond %{REQUEST_URI} store_closed.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?)\/(.*)$ $2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L,QSA]
IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
ExpiresActive on
ExpiresDefault "access plus 2 days"
ExpiresActive on
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
Header set Connection keep-alive
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
Redirect 301 /panou-pluta-cu-rama-din-lemn-90-x-120-cm-optima.html /sisteme-de-afisare-ro/panouri-de-pluta-si-alte-panouri.html
Redirect 301 /sisteme-de-afisare-ro/tabla-magnetica.html /sisteme-de-afisare-ro/tabla-magnetica.html.html
## EXPIRES CACHING ##
ExpiresActive On
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
## EXPIRES CACHING ##
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
#Gzip
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
## EXPIRES CACHING ##
#php_value memory_limit 512M

Hello,

For the first four links this won't be possible as these are external resources. Regarding the last two, you will just have to add the font types to your htaccess file, this would look something like this (! NOT TESTED).

# Add correct content-type for fonts
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg

Compress compressible fonts

AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml

ExpiresActive on

Add a far future Expires header for fonts

ExpiresByType application/vnd.ms-fontobject “access plus 1 year”
ExpiresByType application/x-font-ttf “access plus 1 year”
ExpiresByType application/x-font-opentype “access plus 1 year”
ExpiresByType application/x-font-woff “access plus 1 year”
ExpiresByType image/svg+xml “access plus 1 year”

Kind regards,

Thx a lot.

It works...but whit external link what to do?

I have in gt metrix at page speed 97 and at slow 66 score.

Any idee? I try everything for 2-3 month and i don't resolve it.

1.There are 8 static components without a far-future expiration date.

2.This page has 12 external Javascript scripts. Try combining them into one.

2.This page has 4 external stylesheets. Try combining them into one.

			3.Reduce the number of DOM elements
		
			
F (0)
CONTENT LOW What's this mean?

There are 4156 DOM elements on the page

4.There are 34 components that are not cookie-free

6.

			Reduce DNS lookups
		
			
E (50)
CONTENT LOW What's this mean?

The components are split over more than 4 domains

  • www.zenon.ro: 32 components, 1442.6K (195.2K GZip)
  • maxcdn.bootstrapcdn.com: 1 component, 27.4K (6.8K GZip)
  • www.googletagmanager.com: 1 component, 44.5K (17.3K GZip)
  • www.google-analytics.com: 1 component, 35.9K (14.5K GZip)
  • ajax.googleapis.com: 2 components, 330.9K (96.8K GZip)
  • www.googleadservices.com: 1 component, 18.2K (6.7K GZip)
  • googleads.g.doubleclick.net: 1 component, 1.9K (0.9K GZip)
  • embed.tawk.to: 1 component, 496.8K (120.6K GZip)
  • www.google.com: 1 component, 0.04K
  • www.google.ca: 1 component, 0.04K
  • cdn.jsdelivr.net: 2 components, 295.9K (54.0K GZip)
  • static-v.tawk.to: 3 components, 9.2K
  • va.tawk.to: 2 components, 0.7K (0.4K GZip)
  • browser-update.org: 1 component, 5.4K (2.4K GZip)

Hello,

There are a number of things that could be done to improve this score:

1. Making resources page specific (do not load them when unnecessary

2. Reduce the total amount of requests

3. Optimize the resources. E.g. make CSS files smaller, compress images, etc.

4. Configure the server properly (e.g. Redis, Memcached, etc).

5. And many more things

If you want us to take part in any of the above mentioned things please contact us at sales@poppedweb.com

Cheers!

Thx

Is a lot to do and is hard...:)

I have litespeed server, and is confirgured ok

i send you an email