DEV Community

Discussion on: Can you please refresh (Or how we version our Single-Page Application)

Collapse
 
gauravvermamaropost profile image
gaurav-verma-maropost

Thanks. Just one question why didn't you considered calling some other smaller file's response headers time stamp by fetching that one. That could have saved some data per request.

Thread Thread
 
originalexe profile image
Ante Sepic

The fact is that our HTML file was already rather small (2.57kb gzip), so while fetching for example just file headers would have been less expensive in terms of bandwidth, I think we were rather happy with that approach. If I were to do it again, I would test the headers approach and go with that if it was equally reliable.