mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	Cache busting for invoice pdf view
This commit is contained in:
		
							parent
							
								
									d849a51f1f
								
							
						
					
					
						commit
						a7e3d82054
					
				@ -3,7 +3,7 @@
 | 
			
		||||
@endphp
 | 
			
		||||
 | 
			
		||||
@push('head')
 | 
			
		||||
    <meta name="pdf-url" content="{{ $url ?? $entity->pdf_file_path(null, 'url', true) }}">
 | 
			
		||||
    <meta name="pdf-url" content="{{ $url ?? $entity->pdf_file_path(null, 'url', true) }}?cache_buster={{time()}}">
 | 
			
		||||
    <script src="{{ asset('js/vendor/pdf.js/pdf.min.js') }}"></script>
 | 
			
		||||
@endpush
 | 
			
		||||
 | 
			
		||||
@ -86,7 +86,7 @@
 | 
			
		||||
        <canvas id="pdf-placeholder" class="shadow rounded-lg bg-white"></canvas>
 | 
			
		||||
    </div>
 | 
			
		||||
@else
 | 
			
		||||
    <iframe id="pdf-iframe" src="{{ $url ?? $entity->pdf_file_path(null, 'url', true) }}" class="h-screen w-full border-0 mt-4"></iframe>
 | 
			
		||||
    <iframe id="pdf-iframe" src="{{ $url ?? $entity->pdf_file_path(null, 'url', true) }}?cache_buster={{time()}}" class="h-screen w-full border-0 mt-4"></iframe>
 | 
			
		||||
@endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user