Giuseppe Digilio
8ca668159e
[DURACOM-288] Provide a setting to use a different REST url during SSR execution
...
# Conflicts:
# src/app/app.config.ts
# src/app/core/services/server-hard-redirect.service.spec.ts
# src/app/core/services/server-hard-redirect.service.ts
# src/app/thumbnail/thumbnail.component.ts
# src/modules/app/browser-init.service.ts
# src/modules/app/server-init.service.ts
2025-02-06 17:15:42 +01:00
Alan Orth
b839252ed7
Restrict SSR to paths in the sitemap
...
Because Angular SSR is not very efficient, after discussion with
the Google Scholar team we realized a compromise would be to only
use SSR for pages in the DSpace sitemap (and the home page).
2025-01-22 11:02:35 +03:00
Alan Orth
35946dcf7c
Update isbot dependency
...
Note that the minimum supported Node.js version is now v18, as v16
is now end of life.
2024-09-25 08:17:03 +03:00
Yury Bondarenko
3b11ac517c
Add configuration option to disable inlined CSS in SSR HTML
...
When inlining CSS, Angular Universal needs to extract critical styles.
This seems to take up a significant chunk of processing time.
However, loading may appear less smooth when this feature is disabled.
Added to the configuration to make it easier to A/B test this without a full re-build.
(cherry picked from commit 38a058d7af
)
2024-04-05 18:14:42 +00:00
Mark H. Wood
d6cabd1d01
Document a modified method as required by PR guidelines.
...
(cherry picked from commit bf9b2b82e1
)
2023-09-14 16:07:36 +00:00
Mark H. Wood
46e2f4e22c
Properly await termination.
...
(cherry picked from commit 4449737aed
)
2023-09-14 16:07:36 +00:00
Mark H. Wood
15c2af5fbf
Graceful shutdown on SIGINT (e.g. from 'pm2 stop').
...
(cherry picked from commit 6709c3bb5f
)
2023-09-14 16:07:36 +00:00
Sascha Szott
3a465ac452
remove redundant cache default values from server.ts
...
(cherry picked from commit e53abcb69e
)
2023-09-08 15:44:21 +00:00
Giuseppe Digilio
163014306c
[DURACOM-172] improve regex
2023-06-23 09:23:28 +02:00
Giuseppe Digilio
6a58e49fb4
[DURACOM-172] add check to save only successful response into the SSR cache
2023-06-22 18:16:53 +02:00
Giuseppe Digilio
2f06a7cb17
[CST-5729] Change in order to save header only if configured and existing
2023-06-14 18:26:55 +02:00
Giuseppe Digilio
ac9be25faf
[CST-5729] check if header exists
2023-06-13 19:30:40 +02:00
Giuseppe Digilio
486aefebc7
[CST-5729] Add possibility to store response's headers into the SSR cache
2023-06-13 19:00:33 +02:00
Giuseppe Digilio
96903d89de
[CST-5729] fix signposting proxy url
2023-06-09 19:24:16 +02:00
Giuseppe Digilio
fe8bbddac2
[CST-5729] Fix proxying for signposting
2023-05-11 15:05:35 +02:00
Alban Imami
e8ff0fbf36
[CST-5729] implemented functionality to add link tags in head html section when on item page
2023-05-11 12:53:18 +02:00
Alban Imami
90a1f25ba9
Work for signposting
2023-04-27 16:51:41 +02:00
Yury Bondarenko
59d8ba5d7e
Merge remote-tracking branch 'origin/main' into restore-csr-fallback
2023-02-10 11:53:31 +01:00
Tim Donohue
9e11d69a8a
Fix bug where allowStale couldn't be disabled
2023-02-09 08:48:50 -06:00
Tim Donohue
c099bc468d
Add "debug" config and "allowStale" configs
2023-02-07 12:22:32 -06:00
Yury Bondarenko
88cb397dc9
Fix direct CSR
...
By moving from environment.ts to config.yml we made it so the environment is _not_ up to date with the server configuration when main.js is first loaded.
Because of this the app behaved as if CSR always happened _after_ SSR, effectively breaking direct CSR.
Here the "criterion" for SSR/non-SSR HTML is changed from the related configuration property to the presence of Angular Universal transfer state.
This means we can correctly determine when to bootstrap the app for direct CSR, and it's' now "safe" to just send index.html by itself.
2023-02-07 15:25:20 +01:00
Tim Donohue
bae63111e7
Refactor to two caches. One for bots and one for anonymous users
2023-02-03 12:59:13 -06:00
Tim Donohue
36085e4854
Avoid caching a page twice in a row
2023-02-02 15:09:31 -06:00
Tim Donohue
048e5b012d
Rename enableCache() to initCache() to make code easier to understand
2023-02-02 15:09:31 -06:00
Tim Donohue
f9810493c3
Remove unused import
2023-02-02 15:09:31 -06:00
Tim Donohue
0d4cf5e468
Update SSR caching to only work when unauthenticated. Enhance config comments
2023-02-02 15:09:31 -06:00
Tim Donohue
b0696a404d
Add SSR caching via lru-cache. Update Cache-Control header to 1 week, but tell browsers not to cache index.html
2023-02-02 15:09:31 -06:00
Art Lowel
266931f55f
Merge remote-tracking branch 'upstream/main' into fully-qualified-sitemap-urls-7.5-next
2023-01-11 17:51:58 +01:00
Art Lowel
5c77f500dc
Merge tag 'dspace-7.4' into fully-qualified-sitemap-urls-7.4
2023-01-11 17:39:22 +01:00
Art Lowel
be0b54e058
change sitemap entries in robots.txt to absolute urls
2022-12-01 15:08:58 +01:00
Tim Donohue
d66fdf42b1
Add lint rule banning wildcard imports. Fix existing ones where possible.
2022-10-27 16:02:24 -05:00
Tim Donohue
695ce3ab9e
Merge pull request #1850 from atmire/use-x-forwarded-for-redirect
...
Use values from x-forwarded headers in getOrigin server side
2022-09-28 10:31:16 -05:00
Art Lowel
941e71a75b
add useProxies config to support x-forwarded headers in express
2022-09-28 13:10:46 +02:00
Art Lowel
c94e5d0709
add startup message with version number
2022-09-13 16:39:58 +02:00
Tim Donohue
a1598f9f8a
Merge pull request #1637 from 4Science/CST-5535
...
Add admin panel for actuator information
2022-06-08 09:11:58 -05:00
William Welling
cfb4a627be
use router for static assets
2022-06-02 10:16:49 -05:00
Giuseppe Digilio
d751de0aa6
Merge remote-tracking branch 'origin/main' into CST-5535
...
# Conflicts:
# src/app/admin/admin-sidebar/admin-sidebar.component.ts
2022-05-19 16:59:45 +02:00
William Welling
2db80022b5
Merge branch 'main' of github.com:harvard-lts/dspace-angular into 145-base-path-support
2022-05-19 09:03:11 -05:00
William Welling
9a433b50ff
support base path
2022-05-06 14:32:44 -05:00
Giuseppe Digilio
675f3910cc
[CST-5535] Refactoring health check server side request
2022-05-03 15:32:02 +02:00
Giuseppe Digilio
26d496d55c
Merge remote-tracking branch 'origin/main' into CST-5535
...
# Conflicts:
# package.json
# yarn.lock
2022-05-02 16:13:52 +02:00
Yura Bondarenko
1522c36ed0
Merge remote-tracking branch 'origin/main' into w2p-90978_Improve-initial-page-load_PR
2022-04-28 13:49:39 +02:00
Yura Bondarenko
7e391f0411
90978: Serve pre-compressed static files
2022-04-28 12:16:46 +02:00
Yura Bondarenko
22c5976095
87968: Upgrade to Angular 12
2022-04-08 17:57:15 +02:00
Pratik Rajkotiya
108f6e60f9
[CST-5535] WIP
2022-03-25 18:37:25 +05:30
William Welling
10622008c4
refactor config filename and convert to yaml
2021-12-08 14:56:52 -06:00
William Welling
33488ccf40
extend environment and use injected app config
2021-12-07 10:12:27 -06:00
William Welling
71f5b46639
use standard environments
2021-12-06 12:25:37 -06:00
William Welling
8d66f68dfa
remove bundle workaround, update dependencies and build
2021-11-17 22:11:06 -06:00
Michael W Spalti
98571a496c
Merge remote-tracking branch 'origin/iiif-mirador' into iiif-mirador
2021-04-20 14:46:44 -07:00