yslow

yslow still not giving me an A for expires header in apache httpd even though I added them

浪子不回头ぞ 提交于 2020-01-03 05:53:09
问题 trying to add an ExpiresDefault ExpiresByType to content on my website so that way it is cached. I use cachebusting in the URL (a revision number in the path) for Javascript, CSS, and images so that way I can set it to forever for these mimetypes. I have the following rules set up in apache httpd: ExpiresActive On ExpiresDefault "access plus 1 minutes" ExpiresByType image/gif "access plus 10 years" ExpiresByType image/png "access plus 10 years" ExpiresByType image/jpeg "access plus 10 years"

Combining JavaScript files as recommended by YSlow - optimal size?

痴心易碎 提交于 2019-12-29 01:16:12
问题 We have about 30 external JavaScripts on our page. Each is already minified. To reduce HTTP requests and page load time, we are considering combining them to a single file. This was recommended by the YSlow tool. Is this wise, or is it better to combine them into, say, two files with 15 scripts each? Is there an optimal size for the combined JavaScript files? 回答1: The fewer the HTTP requests, the better. If you want your page to work on Mobile devices as well, then keep the total size of each

gzip working but YSlow indicates it's not

做~自己de王妃 提交于 2019-12-21 17:34:55
问题 I'm getting used to Firebug and YSlow in particular. One of the things I'm looking at is the gzip compression. YSlow still gives my site an "F" and indicates that my CSS and JavaScript files are not being compressed. However, if I run an external gzip test against my site (such as http://www.gidnetwork.com/tools/gzip-test.php ) it tells me that gzip is working and gives me my savings, although I think this may just be the HTML. This is the relevant section of my .htaccess file: <IfModule mod

YSlow gives F grade to files compressed with mod_deflate

六眼飞鱼酱① 提交于 2019-12-21 12:21:17
问题 I'm using mod_deflate on Apache 2.2 and the compression level is set to 9. I've fine tuned every possible aspects of the site based on the recommendations of YSlow (v2) and have managed to get an overall A grade (Total Score: 91) as well as on all categories except for: Make fewer HTTP requests ( Grade C - I'm still working on further unification of images) Compress components with gzip ( Grade F ) YSlow still reports back with a F and tells me to use gzip on my CSS and JS files. Here's a

Image Not Caching?

有些话、适合烂在心里 提交于 2019-12-13 06:27:27
问题 I'm convinced that certain images on my site are not caching properly. I have set the headers as best I can, but it still seems like they download again every time I hit the refresh button. For example, a particular image always takes a bit over 1 second to download. This is even after it should be cached. Here are the response headers: HTTP/1.1 200 OK Date: Sun, 06 Mar 2011 12:51:52 GMT Server: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4

Why is my wordpress website so slow and am I having so much downtime?

随声附和 提交于 2019-12-13 06:06:32
问题 I have used Yslow and PageSpeed to find the cause, but I can't seem to figure out why my blog http://www.fotokringarnhem.nl sometimes loads blazing fast (cached files I guess), and other times takes about 10 seconds or longer to load. I am on a shared server, but haven't had problems like this with other websites on shared servers. I'm using cloudflare to speed up my blog to speed things up, but to no avail. Am I missing something? Pingdom reports of last 30 days (also see http://stats

Should I combine my javascripts in one and css files in one for performance? [duplicate]

陌路散爱 提交于 2019-12-12 14:48:15
问题 This question already has answers here : Combining JavaScript files as recommended by YSlow - optimal size? (2 answers) Closed 6 years ago . YSlow reports suggest that I have many javascript files on a particular page and these should be merged in one. I have many css files on a particular page and these should be merged in one. Q1. Could any body elaborate on this how would it be fast to merge them in one? Q2. In cases where I need conditionally different version of css/javascript (because

GZipping CSS and JS files

我是研究僧i 提交于 2019-12-12 03:43:19
问题 I'm using YSlow to improve the speed of my site, and I'm having trouble with the "compress components with gzip" grade. I have this in my .htaccess file: SetOutputFilter DEFLATE AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript But YSlow is saying There are 4 plain text components that should be sent compressed * http://crewinyourcode.com/css/reset.css * http://crewinyourcode.com/css/inner-pages/index.css * http://crewinyourcode.com/script/css

YSlow - What does clicking add CDN do?

ぃ、小莉子 提交于 2019-12-10 12:57:32
问题 I was going over my YSlow results for an internal web application and I clicked the Add CDN button. Now I have an A rating for using a CDN. What just happened? 回答1: Take a look at the YSlow FAQ on How do I add my CDN hostname to YSlow for Rule 2? 来源: https://stackoverflow.com/questions/7030252/yslow-what-does-clicking-add-cdn-do

PHP function for getting file size and loading time for a page

落花浮王杯 提交于 2019-12-08 09:00:12
问题 Similar to my last question, I'd like to have a PHP function that can take a local path and tell me (a) how much the total file size is for HTML, CSS, JS and images, and (b) the total load time for this page. Like YSlow I think, but as a PHP function. Any thoughts? I looked around and was wondering can I use CURL for this? Even though I need to check paths that are on my own server? thanks! Update: After reading the comments, realizing I'm off base. Instead wondering is there a way