cache lightning font encodings forever
This commit is contained in:
		
							parent
							
								
									5232b59625
								
							
						
					
					
						commit
						738bd052f1
					
				@ -41,21 +41,11 @@ module.exports = withPlausibleProxy()({
 | 
			
		||||
        headers: corsHeaders
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        source: '/darkmode.js',
 | 
			
		||||
        source: '/dark.js',
 | 
			
		||||
        headers: [
 | 
			
		||||
          ...corsHeaders
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        source: '/Lightningvolt-xoqm.ttf',
 | 
			
		||||
        headers: [
 | 
			
		||||
          ...corsHeaders,
 | 
			
		||||
          {
 | 
			
		||||
            key: 'Cache-Control',
 | 
			
		||||
            value: 'public, max-age=31536000, immutable'
 | 
			
		||||
          }
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        source: '/.well-known/:slug*',
 | 
			
		||||
        headers: [
 | 
			
		||||
@ -79,7 +69,17 @@ module.exports = withPlausibleProxy()({
 | 
			
		||||
        headers: [
 | 
			
		||||
          ...corsHeaders
 | 
			
		||||
        ]
 | 
			
		||||
      }
 | 
			
		||||
      },
 | 
			
		||||
      ...['tff', 'woff', 'woff2'].map(ext => ({
 | 
			
		||||
        source: `/Lightningvolt-xoqm.${ext}`,
 | 
			
		||||
        headers: [
 | 
			
		||||
          ...corsHeaders,
 | 
			
		||||
          {
 | 
			
		||||
            key: 'Cache-Control',
 | 
			
		||||
            value: 'public, max-age=31536000, immutable'
 | 
			
		||||
          }
 | 
			
		||||
        ]
 | 
			
		||||
      }))
 | 
			
		||||
    ]
 | 
			
		||||
  },
 | 
			
		||||
  async rewrites () {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user