Leverage Browser Caching

@csosa

Please supply a link to the relevant web-page.

Did your read my post #29?

Are you using HTML5? These guidelines do show a max-age attribute for cache-control.

If you’re using that, then I don’t think you’d need to use “expires” as well.

LINK

Post 29? it just says:

Yes I am

Whoops, it should have been Post #28

My Post #28
I have a web-page that nicks Google images from YouTube and had a very poor Pingdom Rating of only 44 due to “Leverage Browser caching”.

The KLUDGE to get the Pingdom Performance Grade = 100 was to save the images to a “thumbs” sub-domain on my server.

Looks like Google has their images Expiry Date set to zero!


http://www.johns-jokes.com//downloads/sp-d/iog-products/default.php

Check the above link using http://tools.pingdom.com/fpt/

I have made numerous changes, javascript moved to just above </body> but the major change should be to create a sub-domain and move all your images to the sub-domain. This will make a big difference.

Yeah I working on that too. But do you know anything about the meta tags code? This is an example of what Ive coded but im not sure is correct?:

<meta http-equiv="Cache-Control" content="public">
<meta http-equiv="Cache-Control" content="max-age=3600">
<meta http-equiv="Cache-Control" content="must-revalidate">
<meta http-equiv="Expires" content="thu, 25 june 2015 14:30:00 GMT">
<meta http-equiv="Last-Modified" content="mon, 04 may 2015 14:30:00 GMT">

Try this free Online Meta Analyzer and let us know the results.

2 Likes

Seems to be ok?

1 Like

so everytime I change any content I have to change the both dates?

Its been a few days and it is giving no result, seems like the meta tags are being read or am I suppose to wait longer for Google to index them?

As far as I know any change in meta tags is instant.

http://www.johns-jokes.com/downloads/sp-d/iog-products/index.php

Test the above link with Pingdom. The Performance Rating is 97 and fails mostly due to Google Analytics.

Your meta tags all seem to fail I think because they conflict with HTML5 new specifications.

I have used the following .htaccess file:

# subs.Johns-Jokes.com/downloads/sp-d/iog-products

# [NC] == NoCase, [L] == Last, [R=301] == Response Code,  [QSA] == Query String Append 

#RewriteEngine On
	#RewriteOptions inherit
	#DirectoryIndex index.php index.html

#Options +FollowSymLinks

# 5 weeks Caching of images, etc
<FilesMatch "\.(ico|jpg|gif|js|css|png)$">
  Header set Cache-Control "max-age=3024000, public"
</FilesMatch>

# <IfModule mod_headers.c>
  <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary: Accept-Encoding
  </FilesMatch>
# </IfModule>

# <IfModule mod_deflate.c>
    #The following line is enough for .js and .css
    AddOutputFilter DEFLATE js css

    # The following line also enables compression by file content type, 
    # for the following list of Content-Type:
    # AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml

    #The following lines are to avoid bugs with some browsers
    # BrowserMatch ^Mozilla/4 gzip-only-text/html
    # BrowserMatch ^Mozilla/4\.0[678] no-gzip
    # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
# </IfModule>

As mentioned in posts above Leverage Browser Caching is a tedious task which requires a great deal of research and trial and error. Beware of Google search suggestions which do not apply to the HTML5 Doctype.

I cant use .htaccess method because I need other files in order for it to function…

I see…

why does analytics get in the way?

Have you tried adding the .htaccess file if so which files are missing?

why does analytics get in the way?
Parameters passed to Google do not match my site URL. There should be no problem on your site.

I realize this thread is 77 responses long, so I do not fault you for not knowing this, but it has been determined that the user is on shared hosting, and upon contacting the host, they informed the OP that he will not have access to those files (one example the OP gave was the “httpd.conf” file) unless he upgrades to VPS.

He also tried adding it, yet did not notice any change when doing so.

http://www.seocentro.com/tools/search-engines/metatag-analyzer.html

I just checked headers from Headers returned from: http://iogproducts.com/default.aspx and noticed:

cache-control: private
expires: thu, 25 june 2015 14:30:00 GMT

I also noticed the /Style/style.css file is not within header/header which is a problem. Also noticed the recommendation about storing the image files in a sub-domain has not been followed.

I am not sure what the OP expects or where the the report of web-page notifications are generated.

Yes I know they are recognized but they it seems that Google is not catching them yet.

Is it not ok to put it before the tag, Google does seem to favor it there instead of the header.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.