forked from mirrors/gecko-dev
		
	 d9951694c2
			
		
	
	
		d9951694c2
		
	
	
	
	
		
			
			* Test that the preloaded image is actually used and that no preload requests are made if the resource shouldn't be preloaded Differential Revision: https://phabricator.services.mozilla.com/D139740
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			317 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			317 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| function handleRequest(request, response) {
 | |
|   if (request.hasHeader("X-Early-Hint-Count-Start")) {
 | |
|     setSharedState("earlyHintCount", JSON.stringify({ hinted: 0, normal: 0 }));
 | |
|   }
 | |
|   response.setHeader("Content-Type", "application/json", false);
 | |
|   response.write(getSharedState("earlyHintCount"));
 | |
| }
 |