Jump to content

First Byte Time - quite slow shop


Recommended Posts

Hey everyone,

 

I have many problems with the website speed - not only first loading is long but second take double.

 

Some data: 1-6 are debug mode, other 2 are website analysis.

 

I turned off unofficial modules which made website slower for 0,2s

I understand that these are the biggest issue:

Add Expires headers
F (0)
26%
Server High Use a Content Delivery Network (CDN)
F (0)
13%
Server Medium Use cookie-free domains

 

However I don't know how to change it, and would like to ask you will it really help? Or is it because of my shared hosting

https://en.unoeuro.com/products.php - bronze one?

 

Hope that anyone will have time and willing to take a look, I spend many days on optimizing it but I have to go below 3s.

post-806085-0-36634700-1425310501_thumb.png

post-806085-0-97619500-1425310505_thumb.png

post-806085-0-90505300-1425310509_thumb.png

post-806085-0-45656200-1425310514_thumb.png

post-806085-0-78480900-1425310519_thumb.png

post-806085-0-35889800-1425310524_thumb.png

post-806085-0-10904000-1425310532_thumb.png

post-806085-0-84448400-1425310537_thumb.png

Link to comment
Share on other sites

I tried tips from https://www.prestashop.com/forums/topic/264644-speed-up-your-site-and-compression-with-htaccess-file/

but my website stops if I change something in .htaccess :wacko:

I found also this topic https://www.prestashop.com/forums/topic/3590[spam-filter]expire-type-for-image-without-extension-apache-htaccess/?p=1796936

But I don't really understand where should I make a change.

 

Do you have a good advice/tutorial how to add expires headers?

 

How about the advice of "use cookie-free domains"? Won't it block some of my statistics modules?

In the performance I have enabled everything besides "Move JavaScript to the end".

Link to comment
Share on other sites

Do you have a good advice/tutorial how to add expires headers?

Sure: just enable Apache optimisation in Performances :-)

 

How about the advice of "use cookie-free domains"? Won't it block some of my statistics modules?

This is to reduce weight of page by removing cookies for static contents like images, javascript, etc. This will not modify your statistics.

Just buy a new domain and use it as your media server (you may have to configure your apache to avoid any cookie for this domain).

Link to comment
Share on other sites

What if my Apache optimization is enabled and I still have this problem? ;)

 

Sounds like a lot of work and additional server which I don't have money for atm, but thank you, I'll put it in my "To Do" ;) Will it make a significant difference for 100-150 imgs?

Link to comment
Share on other sites

What if my Apache optimization is enabled and I still have this problem? ;)

Check that expires module is installed on your server

 

Sounds like a lot of work and additional server which I don't have money for atm, but thank you, I'll put it in my "To Do" ;) Will it make a significant difference for 100-150 imgs?

This one will not make a significant difference I think.

 

To speed up your site you can also install an HTML cache module like PageCache  ;)

Link to comment
Share on other sites

Check that expires module is installed on your server

 

 

I found that you had a similar problem before: https://www.prestashop.com/forums/topic/407563-cannot-configure-htaccess-expires-on-prestashop-cloud/?p=1980767

and the solution you have used did not work for me.

 

How can I check is it installed on my server? You mean that I should contact my hoster?

 

 

To speed up your site you can also install an HTML cache module like PageCache  ;)

 

Probably I will check it out next month ;)

 

 

Edit: Hoster answered that mod_expires is installed and works fine..

Edited by Crowell (see edit history)
Link to comment
Share on other sites

Edit: Hoster answered that mod_expires is installed and works fine..

Well, it's clearly not working fine, you should ask them to have a look.

 

Also your images are 270x270 but you only display it in 195x195, you could save 48% of size here.

 

To improve the first byte time you can install PageCache ;)

Link to comment
Share on other sites

However they said that it works fine, so what could I do?

 

my .htaccess looks like in other topics..

 

 


<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/javascript "access plus 1 week"
    ExpiresByType application/javascript "access plus 1 week"
    ExpiresByType application/x-javascript "access plus 1 week"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 year"
    ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
    ExpiresByType application/font-woff "access plus 1 year"
    ExpiresByType application/x-font-woff "access plus 1 year"
    ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
    ExpiresByType font/opentype "access plus 1 year"
    ExpiresByType font/ttf "access plus 1 year"
    ExpiresByType font/otf "access plus 1 year"
    ExpiresByType application/x-font-ttf "access plus 1 year"
    ExpiresByType application/x-font-otf "access plus 1 year"
</IfModule>

Edited by Crowell (see edit history)
Link to comment
Share on other sites

They answered again:

"It is not. mod_expires is active on the servers."

 

 

Edit: How about the beginning of the file

 

"# Begin cache control #
ExpiresActive on
ExpiresActive off
<FilesMatch ".*">"

 

Shouldn't it be twice 'on'?

 

Edit2: Deleting "ExpiresActive off" didn't change anything. Why is there so much code anyway? I can delete some parts and everything seems the same O.o

 

Edit3: Support wrote me back: It works, if it didn't work it would throw errors when you tried to use the Expire directives.

Edited by Crowell (see edit history)
Link to comment
Share on other sites

I have fixed one thing:

 

In order to specify cache validator add these lines to the .htaccess

<IfModule mod_headers.c>
    <FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$">
        Header set Last-Modified "Mon, 31 Aug 2009 00:00:00 GMT"
    </FilesMatch>
</IfModule>

 and like https://www.prestashop.com/forums/topic/420985-specify-a-cache-validator-htaccess-optimization/?p=1986751 this post :)

 

Still didn't solve the other one, any help please? :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...