Hi,
I have a resource representation in a REST service. The response content is same for all
users. But the response should be accessed only by authorized
InventoryAuditors.
1.
How should be the response headers set to leverage
caching in Squid (as a forward proxy)?
2.
How Squid will validate that the requested user
is an authorized InventoryAuditor, while serving the response from cache?
[RoutePrefix("api/users")]
public class
UsersController : ApiController
{
[Authorize(Roles="InventoryAuditor")]
[Route("")]
[HttpGet]
public
List<User> GetAllUsers()
{
//Return list of users
}
}
public class User
{
public
int UserID { get; set; }
public
string FirstName { get; set; }
}
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users