Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
Gravatar cache doesn't work well on IIS
Avatar
Roger Martin
Member
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2015 - 1:32 pm
sp_QuotePost Quote

This is spawned from the related thread Mixed content message due to Gravatar image.

The Gravatar Cache plugin stores files without a file extension. By default, IIS does not serve extensionless files and returns a 404 to the browser. However, one can get around this by adding a wildcard mime type to web.config:

<staticContent>

 <mimeMap fileExtension="." mimeType="image/jpg" />

</staticContent>

However, this is a risky move because it is an application wide setting that tells IIS to serve all extensionless files as a JPG image. It may break other behavior that depends on the original IIS settings. It is also unknown if all Gravatar cache files are actually stored as JPGs. Finally, I may encounter other plugins that require extensionless files to be served with a different content type (e.g. text/problem-with-post-edit-buttontml).

I am not comfortable making such a big change just to get the plugin to work. Unfortunately, turning off the plugin isn't a good option either because it causes mixed content warnings when run on an SSL site.

The problems all go away if you store the file with its extension (e.g. file.jpg). Is this possible?

Thanks,

Roger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2015 - 10:54 pm
sp_QuotePost Quote

will leave the discussion on the other topic...  ticket is open for investigation...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626