Current time: 11-19-2019, 09:05 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting N/A for Compress Imaged and Progressive JPEGs even though I am using both?
08-26-2014, 12:10 AM (This post was last modified: 08-26-2014 12:12 AM by hmbehrens.)
Post: #1
Getting N/A for Compress Imaged and Progressive JPEGs even though I am using both?
I am incorporating some caching and compressing lines into the htaccess of a few sites to improve their webpagetest results. However on any site I place my htaccess code the two items "compress images" and "progressive jpegs" disappear and are replaced with one N/A square.

Any help with how to actually get an A on these two items would be appreciated (the idea is to show the test results to clients).

Sample tests:

Without caching code: http://www.webpagetest.org/result/140825_RE_M6E/

With caching code: http://www.webpagetest.org/result/140825_Q8_M4X/

Without caching code: http://www.webpagetest.org/result/140825_RK_MG6/

With caching code: http://www.webpagetest.org/result/140825_01_MEG/

For first time byte we will simply recommend changing hosts from a shared hosting to a vps or dedicated, but other items we would really like to be able to show A's.

Thanks for any information or help on this.

Edit - Here is the code I am putting into the htaccess if that helps any:

===

# Enable keep-alive
<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>

# Compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE image/jpg
AddOutputFilterByType DEFLATE image/jpeg
AddOutputFilterByType DEFLATE image/gif
AddOutputFilterByType DEFLATE image/png

# Or, compress certain file types by extension:
SetOutputFilter DEFLATE

## BROWSER CACHING ##
AddType text/javascript .js

ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/x-icon "access plus 2692000 seconds"
ExpiresByType image/jpeg "access plus 2692000 seconds"
ExpiresByType image/png "access plus 2692000 seconds"
ExpiresByType image/gif "access plus 2692000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2692000 seconds"
ExpiresByType text/css "access plus 2692000 seconds"
ExpiresByType text/javascript "access plus 2692000 seconds"
ExpiresByType application/x-javascript "access plus 2692000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"

Header set Cache-Control "max-age=2692000, public"
Header set Cache-Control "max-age=600, private, must-revalidate"

Header unset ETag
Header unset Last-Modified
Find all posts by this user
Quote this message in a reply
08-26-2014, 01:34 AM
Post: #2
RE: Getting N/A for Compress Imaged and Progressive JPEGs even though I am using both?
Looking at the headers there's a chance that WebPagetest doesn't like processing gzipped images (something you should probably not be doing anyway).
Visit this user's website Find all posts by this user
Quote this message in a reply
08-26-2014, 02:08 AM
Post: #3
RE: Getting N/A for Compress Imaged and Progressive JPEGs even though I am using both?
I see, thank you for taking a look at it.

I removed all the lines for images from both deflate and expires by type and it is still doing it http://www.webpagetest.org/result/140825_3X_QV0/

However I also ran a test for webpagetest.org itself and it turns out they get the same thing as well http://www.webpagetest.org/result/140825_H5_MMP/

So at least whatever it is that's happening there is not necessarily wrong. The site *is* quite noticeably faster to load since I put in the code and followed the advice on the tests.

Maybe I will just give the clients a flat benchmark comparing page load speeds before and after and call it a day.
Find all posts by this user
Quote this message in a reply
08-26-2014, 06:10 AM
Post: #4
RE: Getting N/A for Compress Imaged and Progressive JPEGs even though I am using both?
Looks like a bug that I need to look into - ran out of time today and I'm out tomorrow but I should be able to take a crack at it Wednesday.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)