add strict mode in html middleware match