HTTP Cache: multiple URLs point to the same HTML file

283 views Asked by At

There are times when multiple URLs point to the same HTML file.

For example, the classic use of the base tag

For example the main page can be in: https://dom.com/schops/

but the following URLs also direct to that file:

https://dom.com/shops/mark1
https://dom.com/shops/mark1/products
https://dom.com/shops/mark3

My question is, is there a HTTP cache header or a way to mark that a URL actually has another source URL?

How do you usually solve this problem?

Anyway I am creating my implementation in Cache Storge API, but I would like its behavior to be similar to the standard using the necessary headers when appropriate.

0

There are 0 answers