Handle static resources (like images) when minifying and caching is enabled.