<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: fosil</title>
    <description>The latest articles on DEV Community by fosil (@fosil15554).</description>
    <link>https://dev.to/fosil15554</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F825763%2F7910a823-1c0a-4a05-9068-fa828ceeadc7.jpg</url>
      <title>DEV Community: fosil</title>
      <link>https://dev.to/fosil15554</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fosil15554"/>
    <language>en</language>
    <item>
      <title>Set a Coupon Expiry Date and Time In WooCommerce</title>
      <dc:creator>fosil</dc:creator>
      <pubDate>Sat, 05 Mar 2022 08:44:20 +0000</pubDate>
      <link>https://dev.to/fosil15554/set-a-coupon-expiry-date-and-time-in-woocommerce-28do</link>
      <guid>https://dev.to/fosil15554/set-a-coupon-expiry-date-and-time-in-woocommerce-28do</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_ybXVWbf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ia5jvnht8eu30h47mll.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_ybXVWbf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ia5jvnht8eu30h47mll.png" alt="Steps to setup coupon expiry date and time" width="880" height="524"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to your WordPress Admin panel. Click on &lt;strong&gt;Marketing &amp;gt; Coupons&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Create a new coupon or open an existing one.&lt;/li&gt;
&lt;li&gt;Under the “General“ tab, choose the discount type, coupon amount.&lt;/li&gt;
&lt;li&gt;Under “&lt;strong&gt;Coupon expiry date&lt;/strong&gt;”, click on the box to open the date selector and pick a date.&lt;/li&gt;
&lt;li&gt;Now under “&lt;strong&gt;Coupon expiry time&lt;/strong&gt;“, click on the box field to open the time selector. Use the slider to set hours &amp;amp; minutes or directly type the time in the box and click on Done. You’ll have to set the time in the 24-hr format.&lt;/li&gt;
&lt;li&gt;Set other usage and restrictions as required and Publish/Update your coupon.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Important to know&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Coupon expiry time will work in combination with the Coupon expiry date&lt;/strong&gt;. If the Coupon expiry date is not set, then the coupon expiry time will not be considered for validation.&lt;/li&gt;
&lt;li&gt;The field “Coupon expiry time” will follow the local time of your website shown under &lt;strong&gt;Settings &amp;gt; General &amp;gt; Timezone&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Reference Blog&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.gomahamaya.com/set-coupon-expiry-date-time-in-woocommerce/"&gt;Set a Coupon Expiry Date and Time In WooCommerce&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>If Modified Since HTTP Header In WordPress</title>
      <dc:creator>fosil</dc:creator>
      <pubDate>Sat, 05 Mar 2022 07:58:36 +0000</pubDate>
      <link>https://dev.to/fosil15554/if-modified-since-http-header-in-wordpress-1bhb</link>
      <guid>https://dev.to/fosil15554/if-modified-since-http-header-in-wordpress-1bhb</guid>
      <description>&lt;p&gt;The If-Modified-Since header is a request header, not a response header. As such, it is sent from the browser with the request and should not appear in the response. It would make no sense to implement this in a server-side plugin. The browser would simply ignore it.&lt;/p&gt;

&lt;p&gt;This is essentially how it works in the client-server dialogue:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Browser:&lt;/strong&gt;&lt;br&gt;
I have a cached copy of this asset that has exceeded its expiry time. Send me the latest version, but only if it’s newer than my copy.&lt;br&gt;
If-Modified-Since: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Server:&lt;/strong&gt;&lt;br&gt;
304 Not Modified (continue using your cached copy for now; I’ll save time and bandwidth by not sending you what you already have)&lt;br&gt;
or&lt;br&gt;
200 OK (the asset was changed since then, so here’s the new version)&lt;/p&gt;

&lt;p&gt;If you have an access to the httpd.conf, you can add this line:&lt;br&gt;
ServerTokens Prod&lt;/p&gt;

&lt;p&gt;This will reduce the amount of information about your server software. So, if this is the server header value now:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Apache/2.4.35 (Win64) OpenSSL/1.1.0i PHP/7.2.11&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reference Blog&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.gomahamaya.com/if-modified-since-http-header/"&gt;If Modified Since HTTP Header In WordPress&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
