--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/923091c8-15f9-4076-93a0-c2953544049a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
- Can you explain more about what the specific problem is that prevents you from using pagespeed when you test maxCDN?- As for needing a CDN, if you want to measure its impact you could run an A/B test to measure how this (and other) CDN's impact speed for your audience.Depending on how you have the CDN set up for your website, that's something pagespeed may be able to help with (if you use pagespeed to rewrite assets to the cdn):If your www. is served via the CDN you'll need to figure out another way to do this though.- About MapRewriteDomain: can you post more details on what happened when you added that configuration, and what you would have expected to happen? Note that if you would have expected non .pagespeed. urls to be rewritten: for that to happen you also need to enable rewrite_domains:Otto
On Sat, Aug 20, 2016 at 1:20 PM webspher <red...@gmail.com> wrote:
Hi there, hope you're all fine!--I'm currently testing maxCDN but I must admin that i'm a little disappointed from the fact that i can't use pagespeed as before.First I would like to know if I really do need the CDN as my main target is only in Europe, I heard that google has its own CDN, how is it comparing to maxCDN?In the case i keep using maxCDN, i want to keep using pagespeed (combining css and js files), I searched in the group and found that ModPagespeedMapRewriteDomain cdn.example.com *example.com is the solution, i've tried it before but didn't seem to work. Is there anything else i should do?Thanks a lot for your inlightsHave a lovely weekend
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/923091c8-15f9-4076-93a0-c2953544049a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAHqmWiOC%3DXrJE8KB07xJq8qK82GzZnP2ekcyBX2F1LRrkskjoA%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/8b2c63d4-6ec3-4988-b444-ec0905813905%40googlegroups.com.
I don't think you use the <directory> command in htaccess files. The directory scope is instead determined from the location of the htaccess file itself.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/ff386497-a7c0-4c5c-9c8f-b6475ced46ab%40googlegroups.com.
<IfModule pagespeed_module> ModPagespeedEnableFilters rewrite_domains #ModPagespeedDomain cdn.domain.com</IfModule>
- cache-control:max-age=300
- content-type:image/png
- date:Thu, 25 Aug 2016 20:51:07 GMT
- expires:Thu, 25 Aug 2016 20:56:07 GMT
- last-modified:Fri, 29 Jul 2016 20:27:20 GMT
- link:
- server:NetDNA-cache/2.2
- status:200
- x-cache:MISS
- x-content-type-options:nosniff
- cache-control:max-age=300
- content-encoding:gzip
- content-type:text/css
- date:Thu, 25 Aug 2016 20:53:48 GMT
- etag:W/"PSA-aj-R3IL26VHr5"
- expires:Thu, 25 Aug 2016 20:58:48 GMT
- link:
- server:NetDNA-cache/2.2
- status:200
- vary:Accept-Encoding
- x-cache:MISS
- x-content-type-options:nosniff
- x-original-content-length:2587
## 1 YEAR<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"> Header set Cache-Control "max-age=31536000, public"</FilesMatch>
## 1 MONTH<FilesMatch "\.(jpg|jpeg|png|gif|txt|xml|js|css|swf)$"> Header set Cache-Control "max-age=2592000, public"</FilesMatch>
<IfModule pagespeed_module>
ModPagespeed on
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
ModPagespeedFileCachePath /var/cache/mod_pagespeed/
ModPagespeedLoadFromFile "https://www.domain.com/" "/path_to_root"
ModPagespeedLoadFromFile "https://www.domain.com/js/" "/path_to_js"
ModPagespeedLoadFromFile "https://www.domain.com/css/" "/path_to_css"
ModPagespeedLoadFromFile "https://www.domain.com/img/" "/path_to_images/"
ModPagespeedDisableFilters rewrite_images
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters combine_javascript
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters rewrite_css
#ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters rewrite_javascript
ModPagespeedEnableFilters rewrite_style_attributes_with_url
ModPagespeedSharedMemoryLocks on
ModPagespeedUrlValuedAttribute img data-src image
ModPagespeedMessageBufferSize 100000
</IfModule>
Sorry, that's confusing! Yes, you do need to specify the https://,
because sites are allowed (by spec) to be completely different on http
and https. This means PageSpeed treats http://foo and https://foo as
completely independent domains.
Looking at that url, the only images I see unoptimized are the ones in
the commented-out block.
(PageSpeed optimizes images in the background, so if you first visit a
page with new images they won't have been rewritten yet. But refresh
after a couple seconds and they should be.)
To handle images that are loaded through ajax PageSpeed also rewrites
images in-place. This is on by default, so you should be seeing it
working. A way to tell is that images rewritten this way will have an
ETag like W/"PSA-aj-..."
You have LoadFromFile enabled, PageSpeed doesn't see the cache-control
directives you have. Instead, set:
ModPagespeedLoadFromFileCacheTtlMs <cache_ttl_in_milliseconds>
See https://developers.google.com/speed/pagespeed/module/system#load_from_file_cache_ttl
I'm not sure what you mean by "pagespeed cache"? PageSpeed caches
it's optimizations internally automatically, which you do need, but we
don't have any sort of CDN. In general, PageSpeed makes sites with
CDNs work better, because it longcaches your resources.
Is this a JS file you've asked PageSpeed to load from file?
Sorry, "instead" was the wrong word. In addition to LoadFromFile, you
should set LoadFromFileCacheTtlMs to indicate how long you want your
resources to be cached for at the browser.
<FilesMatch "\.(jpg|jpeg|png|gif|txt|xml|js|css|swf)$"> Header set Cache-Control "max-age=2592000, public"</FilesMatch>
I was wanting to know whether you had configured LoadFromFile to
include this JS file, or whether it was being loaded the default way
over HTTP.
......
Removing the linebreak gets you <u>paragraph</u><i>that<i> which is
run together into one word instead of being two.
It's possible to pull them onto your domain to optimize with
MapProxyDomain, but we generally don't recommend this. The third
party scripts should already be optimized, and there's a good chance
that they're already in users browser caches. Bringing them onto your
site with MapProxyDomain doesn't allow sharing their cache entry
between multiple sites that all use, say, facebook's js.
ModPagespeedEnableFilters remove_comments,rewrite_javascript,rewrite_css,rewrite_images
ModPagespeedEnableFilters elide_attributes,defer_javascript,move_css_to_head
ModPagespeedEnableFilters remove_comments,rewrite_javascript,rewrite_css,rewrite_images,elide_attributes,defer_javascript,move_css_to_head