My rule of thumb: only buy tech books that primarily contain good practices by experienced devs. Good practices tend to survive longer than APIs, and provide long-term value.
There are exceptions though for the base software... Stevens' TCP/IP illustrated and Unix programming will be relevant for many more years, since they describe some pretty much frozen standards.