kovshenin / surge

Surge is a very simple and fast page caching plugin for WordPress.
GNU General Public License v3.0
151 stars 12 forks source link

<!-- served by Surge: timestamp --> #27

Open MadtownLems opened 1 year ago

MadtownLems commented 1 year ago

I believe that most caching plugins of this nature add an HTML comment such as: <!-- served by Surge: {timestamp of when page was cached} -->

to the end of each page. I was hoping you'd consider adding it here. It would make it easier to verify the cache is working as expected, as well as help debug issues or answer questions about when a page was cached.

Great plugin! It's the first of its kind that I'm giving serious consideration to using in a Production environment.

kovshenin commented 1 year ago

Thanks for the suggestion @MadtownLems!

Not a huge fan of altering the resulting output. I think I'd rather put more work into the Site Health dashboard for configuration debugging. However, I will certainly consider this for any future updates. Thank you for trying out Surge!

iandunn commented 1 year ago

One alternative you can use is the X-Cache header that Surge outputs. It'll have a value of hit, miss, or expired. IMO that's just as easy to see as viewing the source, and I agree w/ Konstantin that it's nice to not alter the output.