Cache filename change with different query type.