Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [General] query strings on avatars
#41
Not Solved
I'd guess it's DFS: http://damnfineshave.com
Reply
#42
Not Solved
(10-14-2015, 06:37 AM)Euan T Wrote: I'd guess it's DFS: http://damnfineshave.com

correct.
Reply
#43
Not Solved
Damn... sorry, I just realized that this was already posted. I assumed it is a different website because of the "on my new website" part.

Your avatars are sending correct response headers, there is nothing to worry about.

Cache-Control:max-age=1842338, public
Content-Length:2425
Content-Type:image/jpeg
Date:Wed, 14 Oct 2015 07:00:34 GMT
Expires:Wed, 04 Nov 2015 14:46:12 GMT
Last-Modified:Thu, 13 Aug 2015 21:42:56 GMT
X-CDN:Incapsula
X-Iinfo:9-17867042-0 0CNN RT(1444806010790 23260) q(0 -1 -1 -1) r(0 -1)

Chrome Dev tools confirms this:

[Image: attachment.php?aid=35365]

As expected, Firefox also respects the cache header.

PS: If you decide to test it yourself make sure to have "Disable cache" unticked. Dev Tools will disable cache by default.


Attached Files Thumbnail(s)
   
[Image: axolis.png]

Project, Portfolio and Product management for freelancers.
Reply
#44
Not Solved
interesting. why does gtmetrix not think the same?
Reply
#45
Not Solved
Gtmetrix isn't exactly the most accurate test. Try http://www.webpagetest.org
Reply
#46
Not Solved
(10-15-2015, 06:31 AM)Euan T Wrote: Gtmetrix isn't exactly the most accurate test. Try http://www.webpagetest.org

looks like a lot of the google stuff is failing to be cached (google ads, google fonts, etc.). the avatars are getting dined for image compression, but that's probably to be expected.
Reply
#47
Not Solved
(10-15-2015, 06:37 AM)andrewjs18 Wrote:
(10-15-2015, 06:31 AM)Euan T Wrote: Gtmetrix isn't exactly the most accurate test. Try http://www.webpagetest.org

looks like a lot of the google stuff is failing to be cached (google ads, google fonts, etc.). the avatars are getting dined for image compression, but that's probably to be expected.

Well there isn't any way to cache Google ads, I don't know about google fonts but considering how fast Google's CDN is I wouldn't worry about it. There isn't any reason to use an external tool, I find them unreliable for performance testing because they won't account for their own server load. I am not sure why GTmetrix is not detecting the cache headers but they are there, no need to worry about query strings.
[Image: axolis.png]

Project, Portfolio and Product management for freelancers.
Reply
#48
Not Solved
(10-13-2015, 08:32 AM)SentoWeb Wrote:
(10-13-2015, 07:23 AM)andrewjs18 Wrote:
(10-12-2015, 05:50 PM)Euan T Wrote: @SentoWeb the problem Andrew wants to solve isn't the cache issue, it's the fact that Incapsula is apparently broken and will not serve resources with query arguments from their CDN system.

I don't think this is confined to incapsula though.  I think a lot of proxy CDNs might be like this.

Is Incapsula:
a) not sending cache headers to the client (browser) in case the request url contains a query string but respects your cache headers and doesn't query your server until the cache must be reset; treats the content as cached dynamic content

b) not sending cache headers to the client (browser) in case the request url contains a query string Forty
and also doesn't respect your cache headers so every request for these resources hits the server; treats the content as dynamic content which can't be cached

There could be workarounds for either scenarios. If your website generates enough revenue I would switch to a vanilla pull CDN. You not only have more control over the data, but they are generally faster. I see "proxy CDNs" as 3 kilo Swiss knives, in theory they cover all your needs but they don't excel in anything, including the CDN functionality.

having the avatars show is really popular though bad for site statistics with these page testing tools. The issue is the ? in the query string isnt it? is there another way of writing that so that the advantage of the dateline is kept without the query string? The js files have the same effect with the query string.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)