Public
Edited
Jul 12, 2023
1 star
Insert cell
Insert cell
max_age = 4 * 7 * 24 * 3600 // 4 semaines de mise en cache
Insert cell
Insert cell
csv = fetchp_txtfile_from_zip(insee_csv_zipped, null, {max_age})
Insert cell
Insert cell
// deploy the subset as a csv
deploy("insee_bdm_idbanks_2022_10.csv", async (req, res) => {
res.header("Cache-control", `public, max-age=${max_age}`)
res.header("Content-Type", "text/plain")
res.send(csv)
})
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more