On 24 May 2012, at 22:57, "[email protected]" <[email protected]> wrote:
> > My web site is configured with > > nginx/ssl -> varnish3 (reverse proxy) -> drupal7+apache > > I've added using Typekit webfonts to my Drupal site. I learned that in > order to prevent FOUT, it's css/js need to load asap. > > I did that, so I have > > <!DOCTYPE html> > <html lang="en" dir="ltr" > > <head> > ... > <title>test</title> > > <script type="text/javascript" > src="https://use.typekit.com/ccb7lef.js"></script> > <script > type="text/javascript">try{Typekit.load();}catch(e){} > </script> > ... > > It works well. When I run an optimization scan with YSlow on my site it > reports: > > Grade D on Add Expires headers > There are 2 static components without a far-future expiration > date. > (2012/5/24) https://use.typekit.com/######-d.css?... > (2012/5/24) https://use.typekit.com/######.js > > > I want to set/modify the Expire headers specifically for those two > scripts. > > Given the stack, and that I already modify other headers in varnish vcl > for this config, do I do THIS in the varnish config as well? > > Does the fact that these script are loading from an external CDN affect > this at all? > > I did find an old comment @ typekit's support, > > > https://getsatisfaction.com/typekit/topics/use_far_future_expires_headers_for_better_caching > > that suggests that there's a setting that needs to be 'in' the Typekit > itself. > > I'm confused about where this needs to be handled. So I thought I'd > ask. > > RandyK > > _______________________________________________ > varnish-misc mailing list > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc Hi, Varnish config can only affect content that is being served by the domains pointing at your Varnish server. Stewart Robinson @stewsnooze FullFatThings.com _______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
