Closed (works as designed)
Project:
ImageField
Version:
6.x-3.10
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2011 at 09:08 UTC
Updated:
14 Apr 2013 at 00:24 UTC
From analysis of web pages with Page Speed is found the addition of the query "?" in the path of image loaded with ImageField.
Page Speed indicates to enable proxy caching for these resources, remove query strings from references to static resources.
Where can I make this change in the module ImageField?
Comments
Comment #1
quicksketchI'm guessing you mean a reverse-proxy cache here (but the same probably applies to a proxy cache). Any software you use will almost certainly be able to handle the query strings being present. I know personally I've used Akamai, Limelight, Varnish, and nginx all with the query string on the end of the URLs and things work fine. In fact, the query string is actually quite important when using a reverse-proxy cache as it makes it so that if the image changes but has the same file name the cache will be correctly busted and then show the new image. Say you delete the image, and then upload another image with the exact same name, the query string attached to the image changes so the new image is shown.
So... in all. You shouldn't ever really need to turn this feature off, but if you want to you can override the theme_imagefield_item() theme function in your template.php file in your theme.
EDIT: Fixed typos.
Comment #2
giovanninews commentedThank you for the valuable information. I will try to overwrite the function theme_imagefield_item () to see if there really is a performance increase.
Giovanni
Comment #3
quicksketchComment #4
quicksketch