【发布时间】:2015-04-03 04:24:04
【问题描述】:
我正在分发大图像并在客户端上调整它的大小。
今天我发现 pagespeed 可以调整图像大小并将其提供给客户。
嗯,听起来不错,但设置起来并不容易。
这就是现在发生的事情。
1. client request page
2. with ajax or json inside the initial page response, image url is provided
3. image url is at aws s3 (or I could set that image url to point to my server and proxy it)
我如何使它如下..
1. client request page
2. ajax
3. image url point to my server
4. upon image request, my server gets the image from s3
5. perform the optimization as if the image was obtained from local (resize, cache)
6. give it to the user
PageSpeed and CDN images
Google mod_pagespeed for ajax loaded content
https://superuser.com/questions/768040/https-proxy-s3-aws-via-nginx-with-pagespeed
https://code.google.com/p/modpagespeed/issues/detail?id=599
似乎指向一个答案,但我很难理解它......
【问题讨论】:
-
问题解决了吗?
-
@Anatoly:不,暂时放弃..
标签: apache nginx amazon-s3 pagespeed