Baking times for each variety of shortbread will vary depending on the kind of baking pan and cutters used.
Butter an 8 1/2-inch cake or springform pan; set aside. Sift together flour and salt into a small bowl; set aside. Place butter in bowl of electric mixer fitted with paddle attachment. Cream until fluffy, 3 to 5 minutes. Add sugar, and continue to beat until very light in color and fluffy, occasionally scraping down the sides of the bowl with a spatula, about 2 minutes more. Add vanilla, if using. Add flour mixture, and combine on low speed, scraping with spatula if necessary, until flour is just incorporated and dough sticks together when squeezed with fingers.
Pat dough into prepared pan. If rolling out dough to cut into shapes, form into a flat disk; wrap in plastic. Chill until firm, at least 1 hour.
Heat oven to 325 degrees. Bake until firm and just starting to color, about 50 minutes. Cool completely on wire rack before packaging. Will keep 3 to 4 weeks in an airtight container.