Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

feat(excel): avoid caching in runtime #131

Merged
merged 1 commit into from
Jul 17, 2020
Merged

Conversation

tripodsan
Copy link
Contributor

fixes #90

@github-actions
Copy link

This PR will trigger a minor release when merged.

@codecov
Copy link

codecov bot commented Jul 16, 2020

Codecov Report

Merging #131 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #131   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines          293       293           
=========================================
  Hits           293       293           
Impacted Files Coverage Δ
src/matchers/excel.js 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6fc1127...c905de7. Read the comment docs.

@tripodsan tripodsan merged commit 4edb1c2 into master Jul 17, 2020
@tripodsan tripodsan deleted the less-aggressive-caching branch July 17, 2020 09:29
trieloff pushed a commit that referenced this pull request Jul 17, 2020
# [1.8.0](v1.7.1...v1.8.0) (2020-07-17)

### Features

* **excel:** avoid caching in runtime ([#131](#131)) ([4edb1c2](4edb1c2)), closes [#90](#90)
* **excel:** support for drive id ([#132](#132)) ([2a7b2e0](2a7b2e0)), closes [#122](#122)
@trieloff
Copy link
Contributor

🎉 This PR is included in version 1.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@@ -46,7 +46,7 @@ async function extract(url, params, log = console) {
statusCode: 200,
headers: {
'Content-Type': 'application/json',
'Cache-Control': 'max-age=600',
'cache-control': 'no-store, private, must-revalidate',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems overly aggressive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussed with @davidnuescheler that we should only cache in fastly. as it is invoked by the content-proxy, which is requested by fastly, this is the most transparent way to handle it.

trieloff added a commit to adobe/helix-content-proxy that referenced this pull request Aug 20, 2020
Adobe I/O Runtime respects the `no-cache` directive in the `Cache-Control` *request* header, which will allow us to do a partial revert of adobe/helix-data-embed#131 and keep some caching as the default

see adobe/helix-data-embed#153
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache recently updated spreadsheets less agressively?
2 participants