mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 09:53:13 +00:00
Merge pull request #5515 from overleaf/jpa-new-cdn-caching
[gdm] enable caching for the new CDN GitOrigin-RevId: 01128d2cc730198c726efb7b7bfd576a1fbd268e
This commit is contained in:
parent
564f40978f
commit
49adb35811
1 changed files with 2 additions and 2 deletions
|
@ -3,13 +3,13 @@ import { captureMessage } from './infrastructure/error-reporter'
|
|||
if (window.ExposedSettings.isOverleaf) {
|
||||
const cdnLoadTest = document.createElement('img')
|
||||
cdnLoadTest.addEventListener('error', function () {
|
||||
captureMessage('CDN test image load error (cdn.overleaf.net)')
|
||||
captureMessage('CDN test 2 image load error (cdn.overleaf.net)')
|
||||
})
|
||||
cdnLoadTest.src = 'https://cdn.overleaf.net/img/1p.gif'
|
||||
|
||||
const cdnLoadTestOld = document.createElement('img')
|
||||
cdnLoadTestOld.addEventListener('error', function () {
|
||||
captureMessage('CDN test image load error (cdn.overleaf.com)')
|
||||
captureMessage('CDN test 2 image load error (cdn.overleaf.com)')
|
||||
})
|
||||
cdnLoadTestOld.src = 'https://cdn.overleaf.com/img/1p.gif'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue