ASP NET Compression Caching

modify web.config
  
    
      
    
    
      
    
    
      
      
        
        
        
        
        
        
        
      
      
        
        
        
        
        
        
        
      
    
    
  
add attribute where it requers
        [OutputCache(Duration = int.MaxValue, VaryByParam = "none")]
        public ActionResult Index()
        {
            return View();
        }

No comments:

Post a Comment