improving strategy of when to write to cache and whe to write to original response
using writer
ignoring idea files