apache / incubator-pagespeed-mod

Apache module for rewriting web pages to reduce latency and bandwidth.
http://modpagespeed.com
Apache License 2.0
697 stars 159 forks source link

MapRewriteDomain not working on video source urls #1989

Open mcpacific opened 4 years ago

mcpacific commented 4 years ago

For some reason HTML video source URLs are not being rewritten on a WordPress website. My version is 1.13.35.2-0. I have tried everything. Any help would be appreciated.

jmarantz commented 4 years ago

PageSpeed doesn't optimize video itself. I'm not certain but you might be able to get it to proxy and cache-extend a video file using https://www.modpagespeed.com/doc/domains#url-valued-attributes .

However, I'm not sure I would recommend that, even if it works. PageSpeed is not optimized for video delivery, and if the videos are long I think the performance may be poor.

If the videos are relatively small, say less than a megabyte, it might be worth a shot.

On Sat, Apr 25, 2020 at 1:55 PM mcpacific notifications@github.com wrote:

For some reason HTML video source URLs are not being rewritten on a WordPress website. My version is 1.13.35.2-0. I have tried everything. Any help would be appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/apache/incubator-pagespeed-mod/issues/1989, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO2IPOGNFFZWSUC5OQFNYLROMPY3ANCNFSM4MQ26FIQ .

mcpacific commented 4 years ago

I just want the videos to load from my CDN, which is why I wanted to rewrite the domains... but not do any kind of compression or any other type of optimization. I've tried using the url valued attributes but doing so had no effect. In fact, \