• Miek Gieben's avatar
    middleware/caching (#360) · ba26f47d
    Miek Gieben authored
    Add the rcode to the cached item and use this when we synthesize the
    answer again. We could also infer the rcode from the reassembled
    message, but this seems easier and is only an integer.
    
    Also set the autoritative bit to 0 for all from-cache answers.
    
    Fixes 357
    ba26f47d
cache_test.go 3.6 KB