|
@@ -39,7 +39,7 @@ namespace Masuit.MyBlogs.Core.Controllers
|
|
|
/// </summary>
|
|
|
/// <param name="ip"></param>
|
|
|
/// <returns></returns>
|
|
|
- [Route("ip"), Route("ip/{ip?}", Order = 1), ResponseCache(Duration = 600, VaryByQueryKeys = new[] { "ip" }, VaryByHeader = "Cookie")]
|
|
|
+ [Route("ip"), Route("ip/{ip?}", Order = 1), ResponseCache(Duration = 600, VaryByQueryKeys = new[] { "ip" })]
|
|
|
public async Task<ActionResult> GetIpInfo([IsIPAddress] string ip)
|
|
|
{
|
|
|
if (string.IsNullOrEmpty(ip))
|
|
@@ -76,7 +76,7 @@ namespace Masuit.MyBlogs.Core.Controllers
|
|
|
/// <param name="lat"></param>
|
|
|
/// <param name="lng"></param>
|
|
|
/// <returns></returns>
|
|
|
- [HttpGet("pos"), ResponseCache(Duration = 600, VaryByQueryKeys = new[] { "lat", "lng" }, VaryByHeader = "Cookie")]
|
|
|
+ [HttpGet("pos"), ResponseCache(Duration = 600, VaryByQueryKeys = new[] { "lat", "lng" })]
|
|
|
public async Task<ActionResult> Position(string lat, string lng)
|
|
|
{
|
|
|
if (string.IsNullOrEmpty(lat) || string.IsNullOrEmpty(lng))
|
|
@@ -121,7 +121,7 @@ namespace Masuit.MyBlogs.Core.Controllers
|
|
|
/// </summary>
|
|
|
/// <param name="addr"></param>
|
|
|
/// <returns></returns>
|
|
|
- [Route("addr"), ResponseCache(Duration = 600, VaryByQueryKeys = new[] { "addr" }, VaryByHeader = "Cookie")]
|
|
|
+ [Route("addr"), ResponseCache(Duration = 600, VaryByQueryKeys = new[] { "addr" })]
|
|
|
public async Task<ActionResult> Address(string addr)
|
|
|
{
|
|
|
if (string.IsNullOrEmpty(addr))
|