WebPagetest Forums
caching max-age for static resources that contains "?" - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Optimization Discussions (/forumdisplay.php?fid=5)
+--- Thread: caching max-age for static resources that contains "?" (/showthread.php?tid=12486)



caching max-age for static resources that contains "?" - trx - 08-21-2013 09:41 AM

Hello Community,
Is it a bad idea to cache (max-age) static resources that contain a query "?...." in the URL?

Thanks in advance.

TRX


RE: caching max-age for static resources that contains "?" - Avi Keinan - 08-21-2013 11:07 AM

No. It's ok and a good way to manage different versions of the same file.
But keep in mind that some proxies don't cache items with query string.


RE: caching max-age for static resources that contains "?" - trx - 08-22-2013 03:52 AM

Our CDN is showing that the static file that contains the "?" is a X-HIT, so I think we are good.
Thanks for the advice.