@@ -53,7 +53,6 @@ public ODataV1FeedController(
5353 // /api/v1/Packages
5454 [ HttpGet ]
5555 [ HttpPost ]
56- [ CacheOutput ( NoCache = true ) ]
5756 public IHttpActionResult Get ( ODataQueryOptions < V1FeedPackage > options )
5857 {
5958 _telemetryService . TrackApiRequest ( "/api/v1/Packages" ) ;
@@ -62,7 +61,6 @@ public IHttpActionResult Get(ODataQueryOptions<V1FeedPackage> options)
6261
6362 // /api/v1/Packages/$count
6463 [ HttpGet ]
65- [ CacheOutput ( NoCache = true ) ]
6664 public IHttpActionResult GetCount ( ODataQueryOptions < V1FeedPackage > options )
6765 {
6866 _telemetryService . TrackApiRequest ( "/api/v1/Packages/$count" ) ;
@@ -102,11 +100,6 @@ private IHttpActionResult Get(ODataQueryOptions<V1FeedPackage> options, bool isN
102100
103101 // /api/v1/Packages(Id=,Version=)
104102 [ HttpGet ]
105- [ ODataCacheOutput (
106- ODataCachedEndpoint . GetSpecificPackage ,
107- serverTimeSpan : ODataCacheConfiguration . DefaultGetByIdAndVersionCacheTimeInSeconds ,
108- Private = true ,
109- ClientTimeSpan = ODataCacheConfiguration . DefaultGetByIdAndVersionCacheTimeInSeconds ) ]
110103 public async Task < IHttpActionResult > Get ( ODataQueryOptions < V1FeedPackage > options , string id , string version )
111104 {
112105 _telemetryService . TrackApiRequest ( "/api/v1/Packages(Id=,Version=)" ) ;
@@ -122,11 +115,6 @@ public async Task<IHttpActionResult> Get(ODataQueryOptions<V1FeedPackage> option
122115 // /api/v1/FindPackagesById()?id=
123116 [ HttpGet ]
124117 [ HttpPost ]
125- [ ODataCacheOutput (
126- ODataCachedEndpoint . FindPackagesById ,
127- serverTimeSpan : ODataCacheConfiguration . DefaultGetByIdAndVersionCacheTimeInSeconds ,
128- Private = true ,
129- ClientTimeSpan = ODataCacheConfiguration . DefaultGetByIdAndVersionCacheTimeInSeconds ) ]
130118 public async Task < IHttpActionResult > FindPackagesById ( ODataQueryOptions < V1FeedPackage > options , [ FromODataUri ] string id )
131119 {
132120 _telemetryService . TrackApiRequest ( "/api/v1/FindPackagesById()?id=" ) ;
@@ -138,10 +126,6 @@ public async Task<IHttpActionResult> FindPackagesById(ODataQueryOptions<V1FeedPa
138126
139127 // /api/v1/FindPackagesById()/$count?id=
140128 [ HttpGet ]
141- [ ODataCacheOutput (
142- ODataCachedEndpoint . FindPackagesByIdCount ,
143- serverTimeSpan : ODataCacheConfiguration . DefaultFindPackagesByIdCountCacheTimeInSeconds ,
144- NoCache = true ) ]
145129 public async Task < IHttpActionResult > FindPackagesByIdCount ( ODataQueryOptions < V1FeedPackage > options , [ FromODataUri ] string id )
146130 {
147131 _telemetryService . TrackApiRequest ( "/api/v1/FindPackagesById()/$count?id=" ) ;
@@ -273,10 +257,6 @@ public IHttpActionResult GetPropertyFromPackages(string propertyName, string id,
273257 // /api/v1/Search()?searchTerm=&targetFramework=&includePrerelease=
274258 [ HttpGet ]
275259 [ HttpPost ]
276- [ ODataCacheOutput (
277- ODataCachedEndpoint . Search ,
278- serverTimeSpan : ODataCacheConfiguration . DefaultSearchCacheTimeInSeconds ,
279- ClientTimeSpan = ODataCacheConfiguration . DefaultSearchCacheTimeInSeconds ) ]
280260 public async Task < IHttpActionResult > Search (
281261 ODataQueryOptions < V1FeedPackage > options ,
282262 [ FromODataUri ] string searchTerm = "" ,
@@ -292,10 +272,6 @@ public async Task<IHttpActionResult> Search(
292272
293273 // /api/v1/Search()/$count?searchTerm=&targetFramework=&includePrerelease=
294274 [ HttpGet ]
295- [ ODataCacheOutput (
296- ODataCachedEndpoint . Search ,
297- serverTimeSpan : ODataCacheConfiguration . DefaultSearchCacheTimeInSeconds ,
298- ClientTimeSpan = ODataCacheConfiguration . DefaultSearchCacheTimeInSeconds ) ]
299275 public async Task < IHttpActionResult > SearchCount (
300276 ODataQueryOptions < V1FeedPackage > options ,
301277 [ FromODataUri ] string searchTerm = "" ,
@@ -398,7 +374,6 @@ private async Task<IHttpActionResult> SearchAsync(
398374 }
399375
400376 [ HttpGet ]
401- [ CacheOutput ( NoCache = true ) ]
402377 public virtual HttpResponseMessage SimulateError ( [ FromUri ] string type = "Exception" )
403378 {
404379 if ( ! Enum . TryParse < SimulatedErrorType > ( type , out var parsedType ) )
0 commit comments