diff --git a/_headers b/_headers index ad684eb7db5bb..43d211527f7e4 100644 --- a/_headers +++ b/_headers @@ -1,17 +1,35 @@ -# Cache static resources for 10 months +# Default: no cache for HTML files (allow fresh content) +/*.html + Cache-Control: public, max-age=3600, must-revalidate + +# Cache immutable assets (with content hash) for 1 year +/framework-*.js +/app-*.js /*.js /*.css + Cache-Control: public, max-age=31536000, immutable + +# Cache images and fonts for 1 year /*.woff2 /*.webp /*.jpeg /*.webp /*.gif /*.svg - Cache-Control: public, max-age=25920000 +/images/* +/fonts/* + Cache-Control: public, max-age=31536000, immutable -# Cache HTML files for 10 months -/*.html - Cache-Control: public, max-age=25920000 +# Cache static files +/static/* + Cache-Control: public, max-age=31536000, immutable + +# Security headers +/* + X-Frame-Options: SAMEORIGIN + X-Content-Type-Options: nosniff + X-XSS-Protection: 1; mode=block + Referrer-Policy: strict-origin-when-cross-origin diff --git a/src/components/Pricing/PlanCard/index.js b/src/components/Pricing/PlanCard/index.js index 67561fc021196..99f00058250aa 100644 --- a/src/components/Pricing/PlanCard/index.js +++ b/src/components/Pricing/PlanCard/index.js @@ -18,7 +18,6 @@ const PlanCard = ({ planData, isYearly, currency }) => { const formatPrice = (price) => { const formattedPrice = formatAndConvertPrice(price, currency); - // Remove the currency symbol by extracting only the numeric part return parseFloat(formattedPrice.replace(/[^0-9.]/g, "")); }; const getCurrencySymbol = (currency) => { @@ -30,7 +29,6 @@ const PlanCard = ({ planData, isYearly, currency }) => { {planData.map((x) => ( - //
@@ -64,7 +62,6 @@ const PlanCard = ({ planData, isYearly, currency }) => {