Skip to content

Commit

Permalink
Merge pull request #4502 from freelawproject/fix-set-cache-control-he…
Browse files Browse the repository at this point in the history
…ader
  • Loading branch information
mlissner authored Sep 27, 2024
2 parents 229e5a4 + 656d0ae commit d0276d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
14 changes: 5 additions & 9 deletions cl/api/templates/migration-guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,24 +160,20 @@ <h3 id="opinions-breaking-changes">Opinions (type=o)</h3>
</ul>
<h3 id="oa-breaking-changes">Oral Arguments (type=oa)</h3>
<ul>
<li>The <code>snippet</code> field, currently stores a variety of fields. After the change, it will contain the audio transcription only.
<li>The <code>snippet</code> field currently stores a variety of fields. After the change, it will contain the audio transcription only.
</li>
</ul>
<h3 id="people-breaking-changes">People</h3>
<ul>
<li>No breaking changes. v3 is already switched to ElasticSearch.</li>
</ul>
<h2 id="migrate-db-apis">How Do I Migrate Database APIs to&nbsp;v4?</h2>
<h3 id="total-count-results">Total count of results</h3>
<ul>
<li>The total count of the results is no longer available in the response.
Most users don't need this when crawling the API, and computing the count for each response slows down the API.
If this value is essential to your service, let us know so we can discuss adding a new API with this feature.
</li>
</ul>
<h3 id="total-count-results">Result Count is Removed</h3>
<p>The total count of the results is no longer available in the response. Most users don't need this when using the API, and computing the count for each response slows down the API.
If this value is important to your service, let us know so we can discuss adding a new API with this feature.</p>
<h3 id="invalid-cursor">Invalid cursor error code: 404</h3>
<p>A new type of error in the v4 API is <strong>Invalid Cursor</strong> with a 404 status code.</p>
<p>This can happen when GET parameters are changed without getting a fresh cursor parameter. To prevent this error, do not change the GET parameters while maintaining an existing cursor paramter.
<p>This can happen when GET parameters are changed without getting a fresh cursor parameter. To prevent this error, do not change the GET parameters while maintaining an existing cursor parameter.
</p>
<h2 id="migrate-search-apis">How Do I Migrate the Search API to&nbsp;v4?</h2>
<h3 id="enhancements-v4">Enhancements in v4</h3>
Expand Down
1 change: 1 addition & 0 deletions cl/search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ def show_results(request: HttpRequest) -> HttpResponse:
return TemplateResponse(request, "search.html", render_dict)


@never_cache
def advanced(request: HttpRequest) -> HttpResponse:
render_dict = {"private": False}

Expand Down

0 comments on commit d0276d4

Please sign in to comment.