Hi there,
I'm trying to create my own amp plugin. Right now I'm just replacing <img> with <amp-img> in the AMP version of a page. It's working, but problem is that it seems that grav is using the same cache versión for both pages. So if I clear cache and try to load my amp version:
http://blablabla.com/home.amp
all <img> are replaced with <amp-img>
But if I try to load the normal html version
http://blablabla.com/home
images are still replaced with <amp-img>
If I clear the cache and load first the normal html version
http://blablabla.com/home
<img> are not replaced, but when I try to load the amp version
http://blablabla.com/home.amp
no <img> are replaced with <amp-img>
Of course, I don't want to disable cache for this pages since they need to be fast.
Any thoughs?
Thank u