Peter Bengtsson
07a3e2a48c
Preview hover cards ( #34702 )
...
Co-authored-by: Grace Park <gracepark@github.com >
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com >
2023-03-21 19:59:49 +00:00
Kevin Heis
fc28580492
Remove req utils ( #35695 )
2023-03-20 23:57:33 +00:00
Peter Bengtsson
7505613264
Reloading the site tree ( #34877 )
2023-03-06 19:44:59 +00:00
Sarah Schneider
5ee7bfe4ac
Secret scanning structured data ( #33117 )
...
Co-authored-by: Rachael Sewell <rachmari@github.com >
2023-03-03 18:20:50 +00:00
Peter Bengtsson
d05083410a
Stop recording redirects in Hydro ( #34746 )
2023-02-15 15:40:03 +00:00
Peter Bengtsson
952ea7cf6d
Dynamically serve .webp and .avif from a .png URL ( #34412 )
2023-02-03 18:19:55 +00:00
Peter Bengtsson
f4555a8db0
speed up /healthz endpoint ( #33892 )
2023-01-11 21:46:25 +00:00
Peter Bengtsson
0f796df753
contextualize features before computing current product tree ( #33793 )
...
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com >
2023-01-06 16:53:00 +00:00
Peter Bengtsson
ff12bf6131
stagger the default surrogate-key by language ( #33202 )
2022-12-06 20:26:06 +00:00
Kevin Heis
5e6890745d
Revert "Add temporary endpoint to check language headers ( #33154 )" ( #33159 )
2022-12-01 21:37:35 +00:00
Kevin Heis
b7d6ee0853
Cache language redirects ( #33028 )
2022-12-01 20:01:52 +00:00
Kevin Heis
8ee9c11a0c
Add temporary endpoint to check language headers ( #33154 )
2022-12-01 19:46:40 +00:00
Robert Sese
169cccfb0d
Cleanup old webhooks code and payload files ( #32738 )
2022-11-22 16:56:46 +00:00
Peter Bengtsson
988e68fa98
JIT data ( #32140 )
2022-11-17 13:08:49 +00:00
Robert Sese
b2e5d14036
Automate + Reactify webhooks page ( #29534 )
...
Co-authored-by: Rachael Sewell <rachmari@github.com >
Co-authored-by: Peter Bengtsson <mail@peterbe.com >
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com >
Co-authored-by: Sarah Edwards <skedwards88@github.com >
Co-authored-by: Grace Park <gracepark@github.com >
Co-authored-by: Peter Bengtsson <peterbe@github.com >
2022-11-15 22:12:16 +00:00
Peter Bengtsson
fc85041a08
always only use data/features from English ( #32529 )
...
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com >
2022-11-10 21:05:06 +00:00
Peter Bengtsson
cb8ba20ba8
use contextualizer for glossaries ( #32513 )
2022-11-10 16:36:02 +00:00
Peter Bengtsson
64ee6b2f09
optimize the getCurrentProductTree function ( #31620 )
2022-10-27 20:13:00 +00:00
Peter Bengtsson
d3fe424810
only include productGroups in main context on homepage ( #31640 )
2022-10-17 20:27:19 +00:00
Peter Bengtsson
74103cd650
redirect /search to /api/search/legacy ( #31566 )
2022-10-10 19:23:54 +00:00
Sarah Schneider
b7f48ea2c1
Support GHAE internal-only semantic versioning ( #29178 )
...
Co-authored-by: Peter Bengtsson <mail@peterbe.com >
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com >
2022-09-22 08:26:58 +02:00
Peter Bengtsson
edc25dd421
re-read content on every request ( #30646 )
2022-09-13 13:06:33 +00:00
Kevin Heis
688a274f1f
Remove CSRF check ( #29910 )
...
* Use color_mode for gating "sign up" button
* Remove csrf check
* Add `res.removeHeader('set-cookie')` to cache-control
* Update static-assets.js
* Remove package
* Remove tough-cookie
* Update cache-control.js
* Update cache-control.js
* Update cache-control.js
2022-08-15 19:28:42 +00:00
Peter Bengtsson
f8f20605f4
search api with elasticsearch ( #29053 )
...
* indexing records into Elasticsearch
* @elastic/elasticsearch@8.2.0
* mv
* fix the code
* pipe
* lfs
* use sha
* change how index names work
* search api with Elasticsearch
* works
* refactor client
* better snowballing
* remove dbg
* wip
* highlights and fuzzy search
* improvements and upgrade
* also upgrade
* wip
* index more explicitly
* better validation
* change max size
* popularity by ordinal ranking instead
* playing
* fix package-lock
* rearranging
* catchMiddlewareError
* fix indexing
* match_phrase_prefix on wrapped search
* refactorings
* escape html in content
* wip
* search by URL
* update lock file
* v1 api
* inroads on jest testing the search
* valid yaml hopefully
* index fixtures into local elasticsearch
* specific versions to index only
* small fixes
* feedbacked
* fix tests
* use the npm script
2022-08-05 19:40:38 +00:00
Peter Bengtsson
67c1ff3441
Remove overload protection ( #29659 )
2022-08-05 15:04:33 +00:00
Kevin Heis
bb1f30a39b
Update HTML cache control to 10 minutes ( #29586 )
...
* Update HTML cache control to 10 minutes
* A little clean up
* Remove quick-lru
2022-08-03 20:39:54 +00:00
Rachael Sewell
467459af7c
Reactify graphql pages ( #28547 )
2022-08-03 10:51:21 -07:00
Kevin Heis
bee3b5c9f3
Enable up to one minute of HTML caching ( #29572 )
...
* Enable up to one minute of HTML caching
* Skip a test that isn't the level of cache control we now want
2022-08-03 16:26:53 +00:00
Kevin Heis
a16aeac936
Prepare render-page for re-enabling HTML caching ( #29473 )
...
* Prepare render-page for re-enabling HTML caching
* Prepare render-page for re-enabling HTML caching
* Prepare render-page for re-enabling HTML caching
* Update healthz.js
* Pre calculate cache control directives
* Update render-page.js
2022-07-29 19:49:36 +00:00
Kevin Heis
bb3cb78dd1
Move events under api ( #29298 )
2022-07-26 18:00:58 +00:00
Kevin Heis
564e3a5e2a
Move CSRF response back to XHR (Node.js prep) ( #29179 )
...
* Move CSRF response back to XHR
* Update events.js
* Pass through cookieJar
* Enable session route test
* Skip next x csrf test
* Add other fields to endpoint for future issues
* Remove client side parts
* Revert test skip
* Use nested router pattern
* ugh forgot a file
* Update naming
* Update tests/rendering/session.js
Co-authored-by: Peter Bengtsson <peterbe@github.com >
* Updating to use cache control
* Use req.langauge and req.userLanguage
Co-authored-by: Peter Bengtsson <peterbe@github.com >
2022-07-22 18:17:22 +00:00
Peter Bengtsson
642c971049
morgan logging off by default in tests ( #28987 )
2022-07-12 20:53:34 +00:00
Kevin Heis
71fedb1f31
Update to helmet 5 ( #28488 )
...
* Update to helmet 5
* Disable cross-origin-embedder-policy
* Update helmet.js
* Update helmet.js
* Add CORS on get / options
* Update helmet.js
* Update helmet.js
* Update helmet.js
* Update helmet.js
* Revert "Update helmet.js"
This reverts commit 61ad2fb641ca16a31bf148164c395f2ba91e1734.
* Open up github domains
* Include self
* Update helmet.js
* Update helmet.js
2022-06-14 21:43:25 +00:00
brannon
000a34a1a7
Add explicit config value to enable Fastly testing.
2022-06-03 09:52:02 -06:00
brannon
e7ec9ad487
Merge branch 'main' into brannon-serve-stale-content
2022-06-02 17:33:13 -06:00
brannon
d575b8edd6
Update Fastly test middleware to run in staging ONLY.
...
Add ability to set more headers to mimic real content responses.
Add ability to inject errors, to help in validating behavior.
2022-06-02 17:19:53 -06:00
Peter Bengtsson
d014f36222
fix external redirects ( #28063 )
...
* fix external redirects
* oops
* feedbacked
2022-06-02 02:06:29 +00:00
Peter Bengtsson
7e614adc12
wrap async middlewares correctly ( #28030 )
...
* wrap async middlewares correctly
* clean up more
* feedbacked
2022-06-01 15:13:23 +00:00
Mike Surowiec
8baf00154f
disable per-request logging in production ( #28056 )
...
* disable per-request logging in production
* cleanup log disabling
Co-authored-by: Peter Bengtsson <mail@peterbe.com >
2022-05-31 21:34:10 +00:00
Peter Bengtsson
0340760554
remove spotContentFlaws middleware ( #28068 )
2022-05-31 18:19:16 +00:00
Peter Bengtsson
75c0ec5cab
/en/ permanent redirects to /en should be CDN cacheable (#27976 )
2022-05-25 13:51:16 +00:00
Mike Surowiec
fac6d5a85c
feat: remove sigsci ( #27932 )
2022-05-24 09:49:19 -05:00
Peter Bengtsson
bfd9ae0aed
fast root redirect ( #27925 )
2022-05-23 21:36:58 +00:00
Peter Bengtsson
18504871b9
cache full rendering ( #25424 )
...
* cache full rendering
* still not working with gzip
* progress progress progress
* smaller
* hacky progress
* small fixes
* wip
* lock file
* wip
* wip
* package-lock updates
* wip
* search DOM in lowercase
* simplify
* with instrument
* improve test coverage
* mutateCheeriobodyByRequest
* fix
* remove renderContentCacheByContex
* disable render caching in sync-search
* diables things in github/github link checker
* gzip lru
* tidying up
* updated
* correct tests
* fix: move userLanguage to LanguagesContext
* Revert "fix: move userLanguage to LanguagesContext"
This reverts commit d7c05d958c71eaad496eb46764eb845d80b866ca.
* contexts ftw
* fixed rendering tests
* oops for got new file
* nits addressed
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com >
2022-05-23 12:12:09 +00:00
brannon
6f5255cb92
Add comments explaining the purpose of the fastly-cache-test middleware.
2022-05-19 14:50:56 -06:00
brannon
671b9a81b9
Add endpoint for testing different cache settings in Fastly
2022-05-19 12:59:35 -06:00
Peter Bengtsson
b0d1d5cd20
fix use of DISABLE_OVERLOAD_PROTECTION ( #27711 )
2022-05-16 13:51:38 +00:00
Peter Bengtsson
5630a4139a
process.env.DISABLE_OVERLOAD_PROTECTION ( #27692 )
2022-05-13 15:29:52 -07:00
Peter Bengtsson
1108ecda90
remove loader.io middleware ( #27678 )
2022-05-13 08:16:19 -07:00
Peter Bengtsson
8580fb5e42
fast HEAD requests ( #27672 )
...
* fast HEAD requests
* update test
2022-05-13 14:46:57 +00:00