Post by Cleo » Thu Jun 07, 2018 11:00 am

Hello,

On WebPageTest website I used to have "A" all the way for my sites and suddenly I am getting a "F" for the Cache static content

Code: Select all

Cache static content - F

Leverage browser caching of static assets: 27/100
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/data/favicon.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/satisfaction.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/search.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/top-left.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/mod-top_content-right.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/top-right.png
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/pour-le-melomane/chorale-de-laccueil-bonneau-150x150.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/menu-separador.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/followme.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/scripts/scrolltop-50x40.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/facebook.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/rss.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/email_001.gif
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/pour-le-melomane/Tchaikovski-concerto-pour-piano-no1-150x150.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/international-shipping2.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/share-save-140x63.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/mods-lpbc.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/mod-top_content-bg.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/image/arrow-down.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/powered.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/base-bg.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/base-left.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/base-right.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/bg-menu.png
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/pour-le-melomane/Tchaikovsky-1812-overture-classical-treasures-150x150.jpg
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/pour-le-melomane/DeBussy-greatest-hits-150x150.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/flags/us.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/accepted-payment-150x205.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/default/image/lock.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/printer.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/email.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/google.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/rss.png
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/data/logo.png
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/articles-collection/vintage-milkglass-ashtray-Bloom-Bros-1-150x150.jpg
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/articles-collection/vintage-milkglass-ashtray-Vermont-1-150x150.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/pour-la-photo/minolta.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/decoration/angel-candle-votive-potpourri-ceramic0.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.com/image/data/barre.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/mod-top_content-left.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/image/data/paypal-logo-f.jpg
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/articles-collection/vintage-milkglass-ashtray-ruffed-grouse-1-150x150.jpg
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/articles-collection/vintage-milkglass-ashtray-Canada-goose-1-150x150.jpg
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/articles-collection/vintage-milkglass-ashtray-ring-necked-pheasant-1-150x150.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/top-bg.png
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/bg-cart.png
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/articles-collection/vintage-US-Philadelphia-liberty-bell-6-150x150.jpg
FAILED - (No max-age or expires) - http://www.lesbricollesdecleo.ca/catalog/view/theme/Jewelry/img-tema/mod_top.jpg
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/pour-le-melomane/Ludwig-Van-Beethoven-piano-concerto-no5-150x150.jpg
FAILED - (No max-age or expires) - http://image.lesbricollesdecleo.com/cache/data/pour-le-melomane/scene-de-vie-150x150.jpg
WARNING - (24.0 hours) - http://fonts.googleapis.com/css?family=Open+Sans
My sites is still the same without any change and I have this code in my .htaccess file

Code: Select all

<FilesMatch ".(js|css)$">
    Header append Cache-Control "private"
    </FilesMatch>
    <FilesMatch "\.(gif|jpe?g|png)$">
    Header set Cache-Control "public"
    </FilesMatch>

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 10 days"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/plain "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType application/x-javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"
    ExpiresByType application/x-icon "access plus 1 year"
    </IfModule>
    ## EXPIRES CACHING ##
So I have no idea why it went from an "A" to a "F"!

Anyone have an idea or tell me why this is happening or what I can do to get my "A" back?

Tks
Cleo
Last edited by Cleo on Sun Jul 22, 2018 2:30 pm, edited 1 time in total.

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by IP_CAM » Fri Jun 08, 2018 2:46 am

Well, gtmetrix.com could probably tell you more about it !
https://gtmetrix.com/
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Cleo » Mon Jun 11, 2018 11:36 pm

Thank you for the reply Ernie.
I always check both gtmetrix and webpagetest and I don't realy understand much better on gtmetrix, first because English is not my first language and second I am not a programmer ???

What I don't understand is why is it saying (No max-age or expires) if I have the following in the .htaccess?

Code: Select all

<FilesMatch ".(js|css)$">
    Header append Cache-Control "private"
    </FilesMatch>
    <FilesMatch "\.(gif|jpe?g|png)$">
    Header set Cache-Control "public"
    </FilesMatch>

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 10 days"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/plain "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType application/x-javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"
    ExpiresByType application/x-icon "access plus 1 year"
    </IfModule>
    ## EXPIRES CACHING ##
Tks,

Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by IP_CAM » Tue Jun 12, 2018 1:24 am

Well, since I don't plan, to share my speediest .htaccess file
with the Rest of the OC-World anymore, I've sent it to you by PM.
But let us know, how it worked out ! ;)
We might need to change some other things too, to make it up
to at least 96/90 Desktop and 92/90 Mobile on GTMetrix. Still,
your Theme Design also plays some part on this...
Ernie
PS: is not my first language and second I am not a programmer ...
in both cases, me neither .... :D

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Cleo » Wed Jun 13, 2018 1:45 pm

:laugh:

Thank you very much Ernie, but I am sure that your English is better then mine because the only time I read English is here on the forum and everybody around are French so!

I know about the theme design but I used to get aln "A" all the way on webpagetest and a good score on gtmetrix, and it's only recently that I have that note about the (No max-age or expires) that's why I don't understand since I made no change!

I will take a look at the file you send and will let you know.

Kind regards,

Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by Cleo » Sun Jul 22, 2018 2:29 pm

Hello Ernie

As I told you in my pm the result for the browser caching is 97/96 on gtmetrix and pingdom but for some reason webpagetest is showing the same result as in my first post. I cleared all the cache on my site and browser and it doesn't change so I believe that it will take some time for webpagetest to clear their own cache or something like that!

For gtmetrix and pingdom I cannot get a 100% because of the googlefont but it's ok as long as the score is over 90%

I didn't copy all your file because I have more things in mine that I cannot change but I am comparing yours/mine and adding a few lines at a time and check my site to make sure instead of adding every rules at the same time.

Regards,

Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by IP_CAM » Mon Jul 23, 2018 5:46 am

Well, I usually only test category-pages, with about 20 products on display, but
as I see, you still have some steps to go , to peak your System to a 90+/90+ result.
But forget about 100% on GTmetrix, it's nearly impossible, or one would have to remove
everything on scripts and Mod's, not related to basic functions, and compress/
combine all Script and Styles. besides of a few other improvements. But as soon
as one add's something like a simple Cookie-Code, it starts again with ~97 ... :crazy:
I've had it once, but I refused, after adding a simple little Code, to ever try again.
---
OC is just too heavy on Scriptings, to raise this Value to a higher level, without combining
most of the Styles and Scripts. But after doing such, it's getting VERY HARD, to ever change
something again, if one needs to find some Code in such compressed Files. :D
---
Yslow-wise, I was happy to reach ~92%, by use of 99 VqMods, and a bunch of Modules,
but with a very efficient and technicaly rather unique working Merkent Bootstrap Theme.
That's the best I ever got, in combination:
http://bigmax.ch/shop/image/cache/data/ ... 40x900.jpg
http://bigmax.ch/shop/image/cache/data/ ... 40x900.jpg
---
Your gtmetrix.com Category Page Load Results: (a lot of requests, to create this Page!)
Image
---
Keep on ! :D
Ernie
PS. And check, if this system/library/response.php File also shrinks your
(Category) Page Source Code Content (as well as all others!) to a short list of
possibly about 20 - 25 Lines only, it could add a couple of percentage points as well. ;)
(OC v.1.5.x ONLY!)
---

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Cleo » Mon Jul 23, 2018 9:38 am

Hello Ernie,

I have sent a pm.

Regards,

Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by Cleo » Fri Oct 12, 2018 8:02 pm

@Ernie

Look at the pictures!

Got my "A" back ;D

Image
Image

I added some part of your .htaccess in mine but it was causing too many problem so I didn't use it, but the response.php file did help a little to get a little hire score.

I know my score is still low on GTmetrix but there is not much I can do because of all the .js and .css scripts I have in my theme design but I can live with it. Now it's the mobile part that I will have to look at because my score used to be hire there too but for some reason it went down too :(

Anyway I wanted to thank you for the files and good tips.

Regards,
Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by IP_CAM » Sat Oct 13, 2018 9:55 am

Well, I am not familiar with your OC v.1.5.4, but since you use such a nice Theme,
I am not gonna try to convince you, to at least move up to v.1.5.6.5. :laugh:

Still, I would like to find out, why my .htaccess file raises some problems,
and possibly also find out, what else could still be waiting, to be improved.
So, if you ever feel like letting me have a deeper look, just send me some
access data, to get that thing up into the Nineties on GTmetrix. :D
And since you're a Girl, it would just come as a gift, from a dirty old man ... ::)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Cleo » Sat Oct 13, 2018 10:59 am

Hello Ernie,

You "dirty" old man made this old women laugh :D
I already wrote in an earlier post that moving to vl.1.5.6.5 would be too expensive because I would have to pay to upgrade all the extensions I have bought for my site and of course it would take a lot of time to make all the changes or I would have to hire someone to do it for me and again it would be expensive and this old women don't want a theme that looks like all the other ones! Old women = older theme.

And I don't do this for a living but just to keep my mind busy by working with my website and selling pre-own items and if I make a small profit I use this money to help the causes that are important to me.

So for me even if my site is not "the best in the west" as long as it is working ok without problem I am a happy camper!

Re: your .htaccess I believe it might be some rules in mine conflicting with yours! But since I am not to sure about the meaning of all of them maybe I added one or two that gave opposite directions.

So I searche throught google and found some good tips and made the changes which got me my "A" back and after comparing your response.php file with mine I added the rules from yours that weren't in mine and got a little hire speed score, like you said not a big difference but every little bit help.

Right now I am trying to see if I could get the mobile part faster because I used to get a better score but maybe it's google who changed something that I didn't heard of because I didn't really play with the site for a while because of health problem so I might have miss something?

And I am also looking at adding LetsEncrypt on my site to get rid of the security alert, I already ask for a certificate but I made a mistake and ordered a Wildcard one instead of a Multisites/multi-sub-store so I am unable to download the certificate and unable to cancel it, I wrote to support requesting help but they might be very busy because it's been 3 days and still no answer, so I am in the wait. But I ask a request to my web host which is very helpfull and asked why they are not offering those certificate, I did emailed just a few hour ago so waiting for their reply.

Regards,
Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am
Who is online

Users browsing this forum: Bing [Bot] and 63 guests